Django Admin CSS missing

后端 未结 11 1107
醉梦人生
醉梦人生 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 02:12

    One solution might be to add your local IP to the ALLOWED_HOSTS list in settings.py

    e.g.

    CURRENT_IP = '192.168.0.123'
    ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '0.0.0.0', CURRENT_IP]
    

提交回复
热议问题