From 81627e414e1d2052f0d2cccb52112f76b85f35cd Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sun, 3 Apr 2016 19:40:16 -0600 Subject: [PATCH] Use dashboard view. --- bikeshop_project/core/templates/dashboard.html | 1 + bikeshop_project/core/urls.py | 2 +- bikeshop_project/core/views.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 bikeshop_project/core/templates/dashboard.html diff --git a/bikeshop_project/core/templates/dashboard.html b/bikeshop_project/core/templates/dashboard.html new file mode 100644 index 0000000..838aa18 --- /dev/null +++ b/bikeshop_project/core/templates/dashboard.html @@ -0,0 +1 @@ +{% extends 'base.html' %} \ No newline at end of file diff --git a/bikeshop_project/core/urls.py b/bikeshop_project/core/urls.py index 3e4e780..f7687bd 100644 --- a/bikeshop_project/core/urls.py +++ b/bikeshop_project/core/urls.py @@ -2,5 +2,5 @@ from django.conf.urls import url from .views import DashboardView urlpatterns = [ - url(r'^', DashboardView.as_view()), + url(r'^$', DashboardView.as_view()), ] diff --git a/bikeshop_project/core/views.py b/bikeshop_project/core/views.py index a9d0b98..aa475e1 100644 --- a/bikeshop_project/core/views.py +++ b/bikeshop_project/core/views.py @@ -4,4 +4,4 @@ from django.views.generic import View class DashboardView(View): def get(self, request): - return TemplateResponse(request, 'base.html') \ No newline at end of file + return TemplateResponse(request, 'dashboard.html') \ No newline at end of file