为什么我的django管理网站没有CSS样式 [英] why my django admin site does not have the css style
本文介绍了为什么我的django管理网站没有CSS样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用中的ADMIN_MEDIA_PREFIX将Django指向正确的位置。
由于您使用的是开发版本,我们希望针对静态文件的特定于dev的文档。 Adam的链接将引导您进入1.2版本。
i make a django admin site using django development version
but it does not have a css style :
what can i do .
thanks
解决方案
Django does not serve static files on it's own. You have to tell it where the files are.
The ADMIN_MEDIA_PREFIX in the settings.py will point Django in the right location.
Since you're using the development version, you'll want the dev-specific document for static files how-to. Adam's link will lead you to the 1.2 version.
这篇关于为什么我的django管理网站没有CSS样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文