From 5d489ef3685b32ee5e9c68839b1e187870c0d659 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 22 May 2020 16:22:30 +0100 Subject: started work on optional User as organisation.Person object - tests --- ctrack/core/urls.py | 9 +++++++++ ctrack/core/views.py | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 ctrack/core/urls.py (limited to 'ctrack/core') diff --git a/ctrack/core/urls.py b/ctrack/core/urls.py new file mode 100644 index 0000000..8f2ca6e --- /dev/null +++ b/ctrack/core/urls.py @@ -0,0 +1,9 @@ +from django.urls import path + +from ctrack.core.views import home_page + +app_name = "core" + +urlpatterns = [ + path("", home_page, name="home") +] diff --git a/ctrack/core/views.py b/ctrack/core/views.py index 91ea44a..bee2d72 100644 --- a/ctrack/core/views.py +++ b/ctrack/core/views.py @@ -1,3 +1,5 @@ from django.shortcuts import render -# Create your views here. + +def home_page(request): + return render(request, "pages/home.html") -- cgit v1.2.3