带有Grappelli的Django-CMS弄乱了admin cms页面的布局 [英] Django-CMS with Grappelli messed up the layout for admin cms pages

查看:119
本文介绍了带有Grappelli的Django-CMS弄乱了admin cms页面的布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是按照标准例程将grappelli安装到Django-CMS站点中- pip install django-grappelli ,将其添加到 INSTALLED_APPS ,添加网址格式,然后添加 syncdb collectstatic 。但是,尽管管理区域中的所有其他页面看起来都带有新的主题,但Django-CMS(拖放界面)中CMS页面设置的布局都被弄乱了。

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?

谢谢。

编辑:
谢谢,布兰登的答复。有没有办法完全卸载grappelli而不引起任何问题?现在,在我从 INSTALLED_APPS 中删除​​了grappelli之后,默认管理员的JavaScript就混乱了。特别是这些来自控制台:

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


推荐答案

这是我的解决方案-它涉及设置子域服务器上删除了grappelli并从另一个目录提供静态媒体的网站版本: https://stackoverflow.com/a/12900801 / 473285

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

这篇关于带有Grappelli的Django-CMS弄乱了admin cms页面的布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆