diff options
Diffstat (limited to 'module/setup.py')
-rw-r--r-- | module/setup.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/module/setup.py b/module/setup.py index 63da0e83e..a75aede05 100644 --- a/module/setup.py +++ b/module/setup.py @@ -264,8 +264,14 @@ class Setup(): if db_setup: if is_db: remove(db_path) + from django import VERSION import sqlite3 - from module.web import syncdb + + if VERSION[:2] < (1,2): + from module.web import syncdb_django11 as syncdb + else: + from module.web import syncdb + from module.web import createsuperuser |