Проблема с django manage.py runserver
Я пытаюсь запустить свой тестовый экземпляр django внутри docker, пока мне удалось настроить установку pip. Почему-то я получаю эту ошибку. Любая помощь будет оценена по достоинству.
root@f54977373728:/code# python manage.py check
/usr/local/lib/python2.7/site-packages/OpenSSL/_util.py:6: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography.hazmat.bindings.openssl.binding import Binding
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 328, in execute
django.setup()
File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/usr/local/lib/python2.7/site-packages/django/apps/config.py", line 198, in import_models
self.models_module = import_module(models_module_name)
File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/code/app_usage/models.py", line 8, in <module>
from profiles.models import CustomUser
File "/code/profiles/models.py", line 29, in <module>
from atsn.models import HOD, ProductionDepartment
File "/code/atsn/models.py", line 5, in <module>
from atsn.constants import PERIOD_TYPE, PROCESS_STATUS
File "/code/atsn/constants.py", line 1, in <module>
from model_helpers import Choices
File "/usr/local/lib/python2.7/site-packages/model_helpers/__init__.py", line 1, in <module>
from .upload_to_helpers import upload_to, UploadTo
File "/usr/local/lib/python2.7/site-packages/model_helpers/upload_to_helpers.py", line 84
**file_info,
^
SyntaxError: invalid syntax