-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run with DEBUG=False
by default
#660
Comments
@jnm I would recommend to apply the changes only in last version of KoBoCAT (Django 2/ Python 3) to avoid conflicts. kobocat/onadata/settings/base.py Line 331 in 234dae6
|
quick note in case Josh is working on this 😁
|
@jnm, @joshuaberetta I did change it in KoBoCAT upgrade In case GH does not follow the link, look at TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': False,
'DIRS': [
os.path.join(TEMPLATE_OVERRIDE_ROOT_DIR, 'templates'),
os.path.join(ONADATA_DIR, 'libs/templates')
],
'OPTIONS': {
'context_processors': [
'onadata.koboform.context_processors.koboform_integration',
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.template.context_processors.request',
'django.contrib.messages.context_processors.messages',
'readonly.context_processors.readonly',
'onadata.apps.main.context_processors.google_analytics',
'onadata.apps.main.context_processors.site_name',
'onadata.apps.main.context_processors.base_url'
],
'loaders': [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
]
],
'debug': os.environ.get('TEMPLATE_DEBUG', 'False') == 'True',
},
}
] Note that is enforced to kobocat/onadata/settings/prod.py Lines 10 to 11 in 0cdddf8
|
kobocat/onadata/settings/kc_environ.py
Lines 29 to 30 in 828081d
The text was updated successfully, but these errors were encountered: