I am unable to get django-grappelli working.
Below is what I did –
- Installed using
pip install django-grappelli. - Added ‘
grappelli‘ in INSTALLED_APPS before the ‘django.contrib.admin‘ . - In urls.py, added URL definition
url(r'^grappelli/', include('grappelli.urls')), before admin url, ie.url(r'^admin/', include(admin.site.urls)) - Executed
syncdbandcollectstaticcommands.
Now when I run command runserver, and browse localhost:8000/admin/, surprisingly I am getting the default admin.
I checked the request traffic in Google Chrome Network tab (in Developers Tool), and I don’t see any request for url starting with Grappelli.
I don’t know what I am doing wrong. I am using Django 1.4.1-final in virtualenv on Windows 7 machine.
I found the issue. Actually I had previously overridden the Admin Templates for branding my admin login and top page headers. So, in my template dir, there is admin dir with some custom templates (which I copied from
django/contrib/admin/templatesand edited as per my requirement). Due to this, Grappelli was not showing any of my changes…I got the hint from here – https://stackoverflow.com/a/12193858/1284552
When I removed it, it worked as expected.
Also, I just need to visit the admin path, not the grappelli path as defined in Urls.py.