Really basic question. Learning Django and now working on development server with nginx set up for me. I’ve edited my urls.py file in my django project but its not registering the change. Do i need to restart nginx every time I edit the urls.py file? I don’t have root access so this wouldn’t be possible or is there a local level way of doing it?
EDIT:
Turns out there was an answer. I just needed to touch the .wsgi file for my site.
Yes, you need to restart the server every time you make a code change.
This is why you should do development using the built-in development server – this is what it’s for. It restarts for you more-or-less automatically whenever you make a code change. When things are much more stable, you can move to using an external server that will need restarting.
Alternatively, there might be a way of getting nginx to restart itself on code change – it’s certainly possible with Apache and mod_wsgi.