I am currently hosting a Django Webapp , To run it in production mode I use NGINX and gunicorn.
The Error that I am facing is:
The production server doesnt seem to update urls.py, no matter what I do
App used to transfer files from local file to instance : FileZilla
Steps that I have taken trying to solve the issue:
urls.py and rewriting it
2.Checking if other files also refuse to get updated
RESULT of 2nd step: Other files are successfully getting updated, I tested with static files and with index.html
3.Checking if the file is updated in the instance using The nano editor
RESULT of 3rd step: The file is properly updated in the instance, with all changes being reflected
4.Running it on the instance using
python manage.py runserver (for development purposes), and found out that the urls.py is getting updated properly when using runserver
1.Everything was getting updated properly just yesterday, but suddenly it decides to act rebellious
2.I have updated all packages using
sudo yum install
3.I have restarted nginx and gunicorn: using commands such as :
sudo systemctl enable gunicorn
sudo systemctl restart nginx```
4.I have tried checking for errors using ```sudo nginx -t```, but no errors show up
5.I've checked the error logs, using ```sudo tail -f /var/log/nginx/error.log``` , but no errors show
up here either
How do I solve this?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.