Django Admin CSS missing

后端 未结 11 1135
醉梦人生
醉梦人生 2020-12-24 01:23

I\'ve been messing around with the new collectstatic command and have got it working for my normal pages. That is to say, I am able to load my css at this locat

11条回答
  •  不知归路
    2020-12-24 01:48

    I'm using Django 1.4.3

    What did NOT work for me: No matter how much I edited ADMIN_MEDIA_PREFIX in settings.py I noticed no change in the HTML generated for the Django Admin pages. It always says /media/admin/base.css when I view the source.

    What DID work for me. Copied the 'admin' folder from /django/contrib/admin/static/ and pasted it into my projects 'media' folder

    Now it works great.

提交回复
热议问题