I have always wondered how static files are found by server when using Django. Recently I deployed my Django app to a server and I had trouble deploying static files. I always get the error as following :
Using the URLconf defined in cms.urls, Django tried these URL patterns, in this order:
^gre/
The current URL, static/, didn't match any of these.
when I asked for my css file like this http://gnijuohz.com/static/css/bootstrap.css
SO 1)
Do I have to do something with my urls.py so that it can find my css files and js files?
Notice that I don't have the root permission on the server,so I can't use the collectstatic command provided by Django.
I did set the STATIC_ROOT and STATIC_URL in my setting.py so that the STATIC_ROOT point to my static files.
2)
I am not clear how the whole process works. When I request my css file, does it look through the urls.py to do matches?
Thanks for any help!