Django:丑陋的管理界面 [英] Django: ugly admin interface

查看:96
本文介绍了Django:丑陋的管理界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Debian VM上使用Django,django服务器是通过nginx加载的。一切都正常,直到现在,管理界面除外。其实管理网站,不加载界面的外观和感觉。似乎Css和图像根本没有加载任何想法?



谢谢。

解决方案

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屋!

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