Django:丑陋的管理界面 [英] Django: ugly admin interface
本文介绍了Django:丑陋的管理界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谢谢。
解决方案
将 ADMIN_MEDIA_PREFIX
更改为您的媒体所在。如果您没有复制媒体,请从存储django的任何地方复制该媒体。有一个媒体和管理目录。
类似的问题: Django管理员没有风格
I'm using Django on a Debian VM, django server is loaded through nginx. Everything's working fine 'til now, except the admin interface. In fact, the admin site, doesn't load the "look and feel" of the interface. It seems that Css and images aren't loading at all, any ideas?
Thanks.
解决方案
Change ADMIN_MEDIA_PREFIX
to wherever your media is. If you didn't copy the media, copy it from wherever django is stored, there's a media and admin directory.
Similar question: Django admin has no style
这篇关于Django:丑陋的管理界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文