我是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 manage.py collectstatic
如果您只想测试您的django项目,请检查您的setting.py
文件,将DEBUG
更改为True
,然后运行manage.py runserver
,您将在localhost:8000/admin
管理界面上看到您想要的内容。
如果您的django项目已准备好部署,请运行python manage.py collectstatic
和manage.py将自动为您收集静态文件(css,js ...)。