Report this

What is the reason for this report?

Why The changes of my development server, are not reflected in the production server (views and urls)??

Posted on May 18, 2017

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!

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.

@maxgonpe

What does your server block for NGINX look like?

@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?

@jtittle

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.