You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.7 KiB

  1. From 115a4583deb9ae11adbc419ea87c990d0b8572fe Mon Sep 17 00:00:00 2001
  2. From: Joffrey Darcq <j-off@live.fr>
  3. Date: Sat, 28 Apr 2018 22:27:28 +0200
  4. Subject: [PATCH 1/2] fix django version 1.11
  5. ---
  6. tools/seafile-admin | 6 +++---
  7. 1 file changed, 3 insertions(+), 3 deletions(-)
  8. diff --git a/tools/seafile-admin b/tools/seafile-admin
  9. index 5e3658b..38e7288 100755
  10. --- a/tools/seafile-admin
  11. +++ b/tools/seafile-admin
  12. @@ -518,10 +518,10 @@ def init_seahub():
  13. def check_django_version():
  14. - '''Requires django 1.8'''
  15. + '''Requires django 1.11'''
  16. import django
  17. - if django.VERSION[0] != 1 or django.VERSION[1] != 8:
  18. - error('Django 1.8 is required')
  19. + if django.VERSION[0] != 1 or django.VERSION[1] != 11:
  20. + error('Django 1.11 is required')
  21. del django
  22. From bf69ff1cf1080081eae5d8115842c26468746736 Mon Sep 17 00:00:00 2001
  23. From: Joffrey Darcq <j-off@live.fr>
  24. Date: Sun, 3 Jun 2018 15:51:54 +0200
  25. Subject: [PATCH 2/2] fix django version 1.11
  26. ---
  27. tools/seafile-admin | 6 +++---
  28. 1 file changed, 3 insertions(+), 3 deletions(-)
  29. diff --git a/tools/seafile-admin b/tools/seafile-admin
  30. index 38e7288..c16aab6 100755
  31. --- a/tools/seafile-admin
  32. +++ b/tools/seafile-admin
  33. @@ -499,8 +499,8 @@ def init_seahub():
  34. # create seahub_settings.py
  35. create_seahub_settings_py()
  36. - argv = [PYTHON, 'manage.py', 'syncdb']
  37. - # Set proper PYTHONPATH before run django syncdb command
  38. + argv = [PYTHON, 'manage.py', 'migrate']
  39. + # Set proper PYTHONPATH before run django migrate command
  40. env = get_seahub_env()
  41. print
  42. @@ -509,7 +509,7 @@ def init_seahub():
  43. print
  44. if run_argv(argv, cwd=seahub_dir, env=env) != 0:
  45. - error('Seahub syncdb failed')
  46. + error('Seahub migrate failed')
  47. info('done')