By max gonzalez
Hi, I am writing to see if you can help me with this: I happen is that I make changes in the development server and they work me well, but when I want to see them in production, I do not recognize them and I throw the error:
Page not found (404) Request Method: GET Request URL: http://www.maxsistemas.cl/casas/mipagina
I have tried all sorts of views, and called in urls, (all of them work in development, but nothing works for me in production) last clone a class definition that makes the same call and uses the same template but only change the name of the Definition to see if it works, and it happens to me the same everything works well in development, but when I want to see it in production, I throw the error mentioned at the beginning (404).
I have also tried, reloading nginx with several commands for me to take the changes, but the negative result even, these are the commands I tried:
Sudo systemctl daemon-reload Sudo systemctl start gunicorn Sudo systemctl restart nginx Sudo systemctl start nginx Sudo ufw allow ‘Nginx Full’
Thank you for the help, I do not know what else to try.
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!
@jtittle Comparing a good request with one that does not respond and that is the case of my problem, I see that the first one returns a string
“GET / houses / rental_list / HTTP / 1.1” http://www.maxsistemas.cl/casas/lista_casas_ventas/ "
But in which I call the page that I can not see, it returns the empty string “GET / houses / mipagina HTTP / 1.1” 404 1164 “-”
Does this give you any clue?
Hmmm, well.
I am intrigued that I do not have any separate development and production configurations, since what I run with python3 manage.py runserver 0.0.0.0.8000 and it works, I assume that when I exit the development environment and run the nginx start, it should work same. That is why I am worried about this, since it is taking away time and I can not get out of the trap.
In case of any idea in specific, please let me know and anyway, thank you very much for your inconvenience and for everything that always helps me.
thanks take care
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.