Skip to content
Snippets Groups Projects
Commit 4894a329 authored by Bull, Liam C (UG - Comp Sci & Elec Eng)'s avatar Bull, Liam C (UG - Comp Sci & Elec Eng)
Browse files

Added blank home page

parent 87cbe5ca
No related branches found
No related tags found
No related merge requests found
Showing
with 35 additions and 0 deletions
File added
File added
File added
File added
File added
File added
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class HomeappConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'homeapp'
File added
from django.db import models
# Create your models here.
{% extends "base.html" %}
{% block title %}
<title>Music Collection Home</title>
{% endblock title%}
{% block content %}
<h1>This is My Home Page</h1>
{% endblock content %}
\ No newline at end of file
from django.test import TestCase
# Create your tests here.
from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
]
\ No newline at end of file
from django.shortcuts import render
def home(request):
context = {}
return render(request, 'homeapp/home.html', context)
\ No newline at end of file
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment