add stub dashboard page

This commit is contained in:
Seth Ladygo
2019-03-12 17:39:52 -07:00
parent c543d64726
commit 3b06710ae9
6 changed files with 86 additions and 2 deletions

View File

@ -35,6 +35,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'dashboard',
]
MIDDLEWARE = [
@ -52,8 +53,9 @@ ROOT_URLCONF = 'procat2.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'DIRS': ['templates'],
#'APP_DIRS': True,
#'DIRS': [os.path.join(BASE_DIR, 'templates')],
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',

View File

@ -16,7 +16,11 @@ Including another URLconf
from django.contrib import admin
from django.urls import include, path
from dashboard.views import dashboard
urlpatterns = [
path('', dashboard, name='root'),
path('dashboard', dashboard, name='dashboard'),
path('admin/', admin.site.urls),
path('accounts/', include('django.contrib.auth.urls')),
]