Home  >  Q&A  >  body text

nginx - Why does the data in views.py not change when django modifies it?

django I built using nginx flup

I modified the data in views.py, but for some reason there was no change in the frontend. The debug mode was on, but there was a change if I modified the template.
Even after adding a new route, it is not recognized. I don’t know why. Do I need to restart the server?
God asks for solution

漂亮男人漂亮男人2712 days ago444

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-05-16 17:28:51

    Django will automatically load after modifying the code. Generally, there is no need to restart. What this refers to is python manager.py不是nginx. A log will be generated during the automatic hot loading process. I suggest you post it!

    reply
    0
  • Cancelreply