call django.setup before syncdb for django 1.7 compatibility

This commit is contained in:
fonfon committed 2014-10-01 19:18:27 +02:00
1 parent b157c474fe
commit ea982bf73e
3 files changed
+3 -2

No files matched your search

+1
View File
@@ -195,6 +195,7 @@ def configure_django():
STATIC_URL='/'.join([cfg.server_dir, 'static/']).replace('//', '/'),
TEMPLATE_CONTEXT_PROCESSORS=context_processors,
TEMPLATE_DIRS=template_directories)
django.setup()
LOGGER.info('Configured Django')
LOGGER.info('Template directories - %s', template_directories)