Django Grappelli Error

I have problems with Django Grappelli. It seems that CSS loading is just fine, but the style seems ... off. Perhaps some photos will clarify what I mean:

http://imgur.com/eRlaX

http://imgur.com/T11Xt

+4
source share
4 answers

I just ran into this. You must make sure that 'grappelli' displayed before 'django.contrib.admin' in INSTALLED_APPS .

+11
source

which version of Django and Grappelli are you using? Have you followed in the readme file ? Grappelli uses native CSS on top of the css admin by default, so it doesn't seem to load grappelli css.

If you are using Django 1.3, you need to run:

 ./manage collectstatic 

to import all the necessary CSS for grappelli into a static folder. Also make sure grappelli is at the top of your urls.py (to admin):

 urlpatterns = patterns('', url(r'^grappelli/', include('grappelli.urls')), ... 
+1
source

I think I had this problem. I initially downloaded Django-Grappelli 2.3.2 from http://code.google.com/p/django-grappelli/downloads/list , and an incorrect behavioral CSS situation occurred for me, despite the fact that after all the recommended procedure settings listed in the quick start guide ; it was for a disappointing day. When I checked this out instead using "svn checkout http://django-grappelli.googlecode.com/svn/trunk/grappelli/ grappelli", the problem disappeared. I guess this is a mistake somewhere ... Hope this helps.

+1
source

This will also happen if you yourself have changed the admin templates. Since Grappelli is a complete replacement for the admin site, you need to install Grapelli clean first and then reapply the administrator changes that you could make with the new Grapelli templates.

+1
source

All Articles