Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix django version 1.11 #147

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tools/seafile-admin
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ def init_seahub():
# create seahub_settings.py
create_seahub_settings_py()

argv = [PYTHON, 'manage.py', 'syncdb']
# Set proper PYTHONPATH before run django syncdb command
argv = [PYTHON, 'manage.py', 'migrate']
# Set proper PYTHONPATH before run django migrate command
env = get_seahub_env()

print
Expand All @@ -509,7 +509,7 @@ def init_seahub():
print

if run_argv(argv, cwd=seahub_dir, env=env) != 0:
error('Seahub syncdb failed')
error('Seahub migrate failed')

info('done')

Expand All @@ -518,10 +518,10 @@ def init_seahub():


def check_django_version():
'''Requires django 1.8'''
'''Requires django 1.11'''
import django
if django.VERSION[0] != 1 or django.VERSION[1] != 8:
error('Django 1.8 is required')
if django.VERSION[0] != 1 or django.VERSION[1] != 11:
error('Django 1.11 is required')
del django


Expand Down