user14412
user14412

Reputation: 1017

Django-CMS with Grappelli messed up the layout for admin cms pages

I just installed grappelli into a Django-CMS site by following the standard routine - pip install django-grappelli, add it to INSTALLED_APPS, add in the url pattern, then syncdb and collectstatic. However, although all the other pages in the admin area look great with the new "theme", the layout for CMS Pages settings in Django-CMS (the drag 'n drop interface) are all messed up.

Why is that, and is there a fix for this, yet?

Thanks.

EDIT: Thanks, Brandon for your reply. Is there a way to completely uninstall grappelli without causing any problems? Right now, the default admin's javascripts are messed up after I got rid of grappelli from INSTALLED_APPS. In particular, these are from the console:

Uncaught ReferenceError: grp is not defined actions.js:134
Uncaught ReferenceError: django is not defined admincompat.js:1
Uncaught ReferenceError: django is not defined collapse.js:24
Uncaught ReferenceError: django is not defined :8000/admin/cms/page/2/:942

Upvotes: 0

Views: 2649

Answers (2)

All Іѕ Vаиітy
All Іѕ Vаиітy

Reputation: 26462

Grappelli also conflicts with the stock Django admin. Another solution that work is, If you have removed Grappelli from INSTALLED_APPS also remove its url configurations too..

from url configuration remove this line.

path('grappelli/', include('grappelli.urls'))

Upvotes: 0

scytale
scytale

Reputation: 12641

Here's my solution - it involves setting up a subdomain to server a version of your site with grappelli removed and serving static media from a different directory: https://stackoverflow.com/a/12900801/473285

Upvotes: 0

Related Questions