Search code examples
djangopython-2.7django-grappelli

ImportError: No module named apps from django-grappelli


I was working on one django project on my old machine and it was working fine. Now I am trying to shift my django development environment to new machine (Linux). As a dependency in my project, I am using django-grappelli in it.

I have installed the django-grappelli using following command

sudo pip install --upgrade django-grappelli

It is installed successfully, but now I am trying to run my application and it is giving me following error.

File "/usr/local/lib/python2.7/dist-packages/grappelli/dashboard/__init__.py", line 1, in <module>
    from grappelli.dashboard.dashboards import *   File "/usr/local/lib/python2.7/dist-packages/grappelli/dashboard/dashboards.py", line 13, in <module>
    from grappelli.dashboard import modules   File "/usr/local/lib/python2.7/dist-packages/grappelli/dashboard/modules.py", line 11, in <module>
    from django.apps import apps as django_apps ImportError: No module named apps

I have search around and tried many suggestions, but didn't work. If I am uninstalling the grappelli, It is goving me error for

No module named grappelli

Can anyone suggest where am I doing mistake?

Django version is 1.6


Solution

  • I have tried different things based on my older setup in which all is working fine.

    Downgrading the grappelli to version 2.5.3 worked form me. It was not working with 2.6.1 (latest varsion). Not very sure about if is this the issue with 2.6.1 grappelli version or is there any prerequisite for it.

    I have uninstalled the 2.6.1 and installed 2.5.3 grappelli, and it resolved my issue.