add SetApplicationName middleware for nav use
This commit is contained in:
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user