关于Python Django Administration页面的外观

问题描述 投票:0回答:2

我是python的初学者Django .i创建了一个django管理页面,但是css.this is the screen shot of the that page.i想要像这样的问题。 this is the what i wanted page's screen shot。有人可以帮帮我吗?

python django
2个回答
0
投票

首先运行此命令:

 python manage.py collectstatic

0
投票

如果您只想测试您的django项目,请检查您的setting.py文件,将DEBUG更改为True,然后运行manage.py runserver,您将在localhost:8000/admin管理界面上看到您想要的内容。

如果您的django项目已准备好部署,请运行python manage.py collectstatic和manage.py将自动为您收集静态文件(css,js ...)。

© www.soinside.com 2019 - 2024. All rights reserved.