How to make my css files to work in django

后端 未结 2 464
深忆病人
深忆病人 2021-01-21 05:36

I am new to django but have some relative skills in python. I just started building a project in django and so far I have been able to create an app within my project. Also, I h

2条回答
  •  情话喂你
    2021-01-21 05:57

    Thanks to all those that responded to my question, my static files are now active. I had to add RequestContext in my project view to make the {{STATIC_URL}} in the html file active.

    def index(request): return render_to_response('Calculator/index.html', context_instance=RequestContext(request))

提交回复
热议问题