add SetApplicationName middleware for nav use

This commit is contained in:
Seth Ladygo
2019-03-12 18:08:01 -07:00
parent 626570ffe3
commit d55272bced
3 changed files with 16 additions and 3 deletions

View File

@ -46,6 +46,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'procat2.middleware.SetApplicationName',
]
ROOT_URLCONF = 'procat2.urls'
@ -54,8 +55,7 @@ TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['templates'],
#'APP_DIRS': True,
#'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',