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

半腔热情 提交于 2019-12-23 06:06:05

问题


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

回答1:


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



来源:https://stackoverflow.com/questions/12025231/django-cms-with-grappelli-messed-up-the-layout-for-admin-cms-pages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!