× В названия постов этого раздела нужно включать наименование платформы для которой написана инструкция, Например "Ubuntu 12"

обновил (

4 weeks 2 days ago - 4 weeks 2 days ago #2009 by wishuwerehere
wishuwerehere created the topic: обновил (
стояло всё работало, решил обновить openmediavailt теперь при попытке запустить даёт ошибку
((






root@openmediavault:/opt/sopds-master# python3 manage.py sopds_server start --daemon
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 347, in execute
    django.setup()
  File "/usr/local/lib/python3.5/dist-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.5/dist-packages/django/apps/registry.py", line 112, in populate
    app_config.import_models()
  File "/usr/local/lib/python3.5/dist-packages/django/apps/config.py", line 198, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 673, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/opt/sopds-master/opds_catalog/models.py", line 38, in <module>
    class Book(models.Model):
  File "/opt/sopds-master/opds_catalog/models.py", line 43, in Book
    catalog = models.ForeignKey('Catalog',db_index=True)
TypeError: __init__() missing 1 required positional argument: 'on_delete'



тут пишут как поправить ошибку, может смоте помочь? туц
Last Edit: 4 weeks 2 days ago by wishuwerehere.

Please Войти or Create an account to join the conversation.

  • wishuwerehere
  • wishuwerehere's Avatar Topic Author
  • Offline
  • Новый участник
  • Новый участник
More
4 weeks 2 days ago - 4 weeks 2 days ago #2012 by mitshel
mitshel replied the topic: обновил (
сделайте даунгрэйд для Django, чтобы версия, была меньше чем 2.0

python3 -m pip install django==1.11
Last Edit: 4 weeks 2 days ago by mitshel.

Please Войти or Create an account to join the conversation.

  • mitshel
  • mitshel's Avatar
  • Offline
  • Администратор
  • Администратор
More
Time to create page: 0.093 seconds