Django - Error: No module named grappelli

Pierre de LESPINAY picture Pierre de LESPINAY · Dec 26, 2011 · Viewed 7.9k times · Source

I followed the installation guide for Grappelli:

Installed django-grappelli

$ pip install django-grappelli

Modified settings.py

INSTALLED_APPS = (
  'grappelli',
  'django.contrib.admin',
)

my urls.py

urlpatterns = patterns('',
  (r'^grappelli/', include('grappelli.urls')),
)

And django tells me:

Error: No module named grappelli

What did I forgot ?

Edit

$ pip install django-grappelli

Requirement already satisfied: django-grappelli in /usr/local/lib/python2.6/dist-packages
Installing collected packages: django-grappelli
Successfully installed django-grappelli

$ pip freeze

...
django-grappelli==2.3.5
...

Answer

ssbb picture ssbb · Dec 26, 2011

Check if grappelli in your PYTHONPATH. Run this in console:

$ python
>> import grappelli

If this throw ImportError you not installed this package.