why my django admin site does not have the css style

后端 未结 19 1942
南笙
南笙 2020-12-02 07:49

I make a Django admin site using Django development version

But it does not have a CSS style :

\"alt

19条回答
  •  天命终不由人
    2020-12-02 08:35

    this works fine and easily. I moved (manually) the folder. just you have to copy your static/admin from the directory of the main Project and paste it into public_html static/ if there is no static folder you have to run following command in terminal

    python manage.py collectstatic
    

    here you go with css working of Django admin

提交回复
热议问题