I’m using django on nginx with FastCGI and i have a problem with urls.py. According to this question, django caches url.py file and i’m – just like above question’s author – not able to modify my URLs definitions.
My question is – is there any way to clear url cache in django/nginx/fcgi without server restart (which not helps anyway)?
This is not just a urls.py thing, it’s normal workflow for running a wsgi or fastcgi app. The module is in memory, and it doesn’t get reloaded from disk until you tell the server that it’s changed.
As per Django’s FastCGI docs:
For development, in most cases you can use the django development server, which watches for code changes and restarts when it sees something change.