Я звоню migrate
на свой manage.py, но он не работает.
Я использую Ubuntu 18.04
вот ошибка: "
Traceback (most recent call last):
File "/snap/pycharm-professional/68/helpers/pycharm/django_manage.py", line 52, in <module>
run_command()
File "/snap/pycharm-professional/68/helpers/pycharm/django_manage.py", line 46, in run_command
run_module(manage_file, None, '__main__', True)
File "/usr/lib/python2.7/runpy.py", line 188, in run_module
fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 82, in _run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/jre/PycharmProjects/autda_emp/manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/home/jre/PycharmProjects/autda_emp/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/home/jre/PycharmProjects/autda_emp/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute
django.setup()
File "/home/jre/PycharmProjects/autda_emp/venv/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/jre/PycharmProjects/autda_emp/venv/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models()
File "/home/jre/PycharmProjects/autda_emp/venv/local/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/jre/PycharmProjects/autda_emp/venv/local/lib/python2.7/site-packages/filer/models/__init__.py", line 3, in <module>
from .clipboardmodels import * # flake8: noqa
File "/home/jre/PycharmProjects/autda_emp/venv/local/lib/python2.7/site-packages/filer/models/clipboardmodels.py", line 9, in <module>
from . import filemodels
File "/home/jre/PycharmProjects/autda_emp/venv/local/lib/python2.7/site-packages/filer/models/filemodels.py", line 16, in <module>
from . import mixins
ImportError: cannot import name mixins
вот мой стоп-кадр:
Django==1.11.13
django-filer==1.3.1
django-js-asset==1.1.0
django-mixins==0.0.10
django-mptt==0.8.7
django-polymorphic==1.3.1
django-suit==0.3a3
easy-thumbnails==2.5
Pillow==5.1.0
psycopg2==2.6.1
pytz==2018.4
Unidecode==0.4.21
Я не слишком много сделал для создания проекта и установки пакетов, следуя указаниям в документации.
если нужно, вот мой installed apps
список
INSTALLED_APPS = [
'autokada_emp.apps.MyDjangoSuitConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'mixins',
'easy_thumbnails',
'filer',
'mptt',
]
У меня нет большого опыта, поэтому мы будем благодарны за любую помощь
вот структура проектов в соответствии с просьбой:
├── autda_emp
│ ├── apps.py
│ ├── apps.pyc
│ ├── __init__.py
│ ├── __init__.pyc
│ ├── settings.py
│ ├── settings.pyc
│ ├── templatetags
│ │ └── future.py
│ ├── urls.py
│ ├── urls.pyc
│ ├── wsgi.py
│ └── wsgi.pyc
├── manage.py
├── templates
└── venv
├── bin [18 entries exceeds filelimit, not opening dir]
├── include
│ └── python2.7 -> /usr/include/python2.7
├── lib
│ └── python2.7 [48 entries exceeds filelimit, not opening dir]
├── local
│ ├── bin -> /home/jre/PycharmProjects/autda_emp/venv/bin
│ ├── include -> /home/jre/PycharmProjects/autada_emp/venv/include
│ └── lib -> /home/jre/PycharmProjects/autda_emp/venv/lib
└── pip-selfcheck.json
После обширного тестирования я обнаружил, что ошибка начинается после установки django-suit