diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-14 19:37:35 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-14 19:37:35 +0200 | 
| commit | 11185161a0ec5c15a1852fd7bc387b82573b577a (patch) | |
| tree | 251c730e3bfe366c66d495838a8dc0765003b627 /example_project/settings.py | |
| parent | c689207628c6034f6ca2ff8dfdadf1bedd9915f6 (diff) | |
| download | Ishtar-11185161a0ec5c15a1852fd7bc387b82573b577a.tar.bz2 Ishtar-11185161a0ec5c15a1852fd7bc387b82573b577a.zip | |
Django 1.8: fix import errors, deprecation warnings and models warnings
Diffstat (limited to 'example_project/settings.py')
| -rw-r--r-- | example_project/settings.py | 11 | 
1 files changed, 3 insertions, 8 deletions
| diff --git a/example_project/settings.py b/example_project/settings.py index 78d97f0ae..eaa1fb7f5 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -137,10 +137,8 @@ INSTALLED_APPS = [      'django.contrib.sites',      'django.contrib.gis',      'django.contrib.staticfiles', -    'django.contrib.formtools',      'django.contrib.messages',      'django.contrib.humanize', -    'south',      'registration',      # 'geodjangofla',      'ishtar_pdl', @@ -242,12 +240,9 @@ except ImportError, e:  TESTING = sys.argv[1:2] == ['test'] -if TESTING: -    SOUTH_TESTS_MIGRATE = False - -    if USE_SPATIALITE_FOR_TESTS: -        DATABASES['default']['ENGINE'] = \ -            'django.contrib.gis.db.backends.spatialite' +if TESTING and USE_SPATIALITE_FOR_TESTS: +    DATABASES['default']['ENGINE'] = \ +        'django.contrib.gis.db.backends.spatialite'  PROJECT_SLUG = locals().get('PROJECT_SLUG', 'default') | 
