Django STATIC_URL is not working

后端 未结 5 797
渐次进展
渐次进展 2020-12-15 22:53

Django version is 1.4. I had read the official document, and googled my problem.

first I had followed the official document Managing static files added

5条回答
  •  萌比男神i
    2020-12-15 23:58

    I realize this has already been answered but I wanted to provide another answer in the event that STATIC_URL still renders as empty even when using RequestContext.

    If you are running the development server remember to start the server with the insecure flag to have the server serve your static files:

    python manage.py runserver --insecure
    

提交回复
热议问题