diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-04 22:37:56 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-24 12:06:08 +0200 |
commit | 8e5b2d492ca596d5e6f2ca5a9e00a1e6561738c3 (patch) | |
tree | 237134468805dbc69109b24f84d24715724a116d /example_project | |
parent | d90b75645f1df007f4c7c331f29affef842c11e7 (diff) | |
download | Ishtar-8e5b2d492ca596d5e6f2ca5a9e00a1e6561738c3.tar.bz2 Ishtar-8e5b2d492ca596d5e6f2ca5a9e00a1e6561738c3.zip |
Remove CSRF check disabling
Diffstat (limited to 'example_project')
-rw-r--r-- | example_project/settings.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/example_project/settings.py b/example_project/settings.py index 02d62ffd9..a76134746 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -261,19 +261,11 @@ DOT_BINARY = "" TEST_RUNNER = 'ishtar_common.tests.ManagedModelTestRunner' -DISABLE_CSRF_CHECK = False # for testing purpose - try: from local_settings import * except ImportError, e: print('Unable to load local_settings.py:', e) -if DISABLE_CSRF_CHECK: - MIDDLEWARE.insert( - MIDDLEWARE.index('django.middleware.csrf.CsrfViewMiddleware'), - 'ishtar_common.middleware.DisableCsrfCheck' - ) - TABLE_COLS = {} # allow to overload table col settings on extra module COL_LABELS = {} |