darklow / django-suit

Modern theme for Django admin interface
http://djangosuit.com/
Other
2.32k stars 704 forks source link

Django filler not working. ImportError: cannot import name mixins #695

Open janisroze opened 6 years ago

janisroze commented 6 years ago

Im calling migrate on my manage.py but it is not working.

I am running Ubuntu 18.04 and as i have tested creating a completely new django project and adding the dependencies for django-filer everything works and the errors appear after installing and adding django-suit

here is the error:"

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

here is my pip freeze:

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

I have not done much aside of creating a project and installing the packages following directions in the documentation.

if needed here is my installed apps list

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',

]

I do not have much experience so all help would be appreciated

here is the projects structure as asked:

├── 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
jbidoret commented 6 years ago

What are these “mixins” ? It seems you don’t have any app with such a name, and don’t even have suit in your installed apps…