Browse Source

Use dashboard view.

feature/python-error-tracking
Drew Larson 9 years ago
parent
commit
81627e414e
  1. 1
      bikeshop_project/core/templates/dashboard.html
  2. 2
      bikeshop_project/core/urls.py
  3. 2
      bikeshop_project/core/views.py

1
bikeshop_project/core/templates/dashboard.html

@ -0,0 +1 @@
{% extends 'base.html' %}

2
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()),
]

2
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')
return TemplateResponse(request, 'dashboard.html')
Loading…
Cancel
Save