call django.setup before syncdb for django 1.7 compatibility

This commit is contained in:
fonfon 2014-10-01 16:42:09 +02:00
parent b157c474fe
commit ea982bf73e
3 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@
On a Debian based system, run:
$ sudo apt-get install libjs-jquery libjs-modernizer \
$ sudo apt-get install libjs-jquery libjs-modernizr \
libjs-twitter-bootstrap make pandoc python3 python3-cherrypy3 \
python3-django python3-bootstrapform

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)

View File

@ -90,7 +90,7 @@ setup(
],
install_requires=[
'cherrypy >= 3.0',
'django >= 1.6.0',
'django >= 1.7.0',
'django-bootstrap-form'
],
package_data={'plinth': ['modules/enabled/*',