Added a custom csrf failure view

This commit is contained in:
Raphael Michel
2015-11-05 10:19:05 +01:00
parent 79ad8b40ed
commit ee93495fda
3 changed files with 58 additions and 0 deletions

View File

@@ -201,6 +201,7 @@ django.conf.locale.LANG_INFO.update(EXTRA_LANG_INFO)
AUTH_USER_MODEL = 'pretixbase.User'
LOGIN_URL = '/login' # global login does not yet exist
LOGIN_URL_CONTROL = 'control:auth.login'
CSRF_FAILURE_VIEW = 'pretix.base.views.errors.csrf_failure'
template_loaders = (
'django.template.loaders.filesystem.Loader',