#24704: Development server do not restart on SynaxError
-------------------------------------+-------------------------------------
Reporter: artemrizhov | Owner: nobody
Type: Bug | Status: new
Component: Core (System | Version: 1.7
checks) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by artemrizhov):
* status: closed => new
* resolution: invalid =>
Comment:
Thank you for your explanation. To be honest, it does not help at all. The
question is not about the program, but about the dev server which hosts
it.
Please note that the server does not exit when syntax error happens in
views.py. So, it really makes sense to explain how you did that impossible
thing! ;) I'm joking, please don't waste your time for explanation of
this. But please believe many perfectionists have a lot of another work
and do not have time to dive into the Django core.
The server and the application are two different entities. I don't think
this should be clear that the server can not handle syntax errors in the
app. Furthermore, '''it does''' in some cases. And even furthermore, I'm
sure it is possible to implement such feature for any cases, even with
Python, for example, with a master process which is watching and rerunning
the app when it exits with error.
When I read documentation I'd want to believe that the written text states
true. If not, why not to add a note about this? I found few tickets about
this problem both fixed and rejected. So I came to the documents while
searching for the truth. But it lies :) Just replace "any errors" with
something more honest. I'd not spend time to write this ticket if the docs
contains notes about this, and you'd not spend time to answer to my
question. And I'm sure many people will thank you.
But it would be really better if Django dev server can handle any errors.
I've started learning this issue because I've made too many manual
restarts of the dev server while working on site admin area.
The simplest workaround is `while true; do ./manage.py runserver ; sleep 1
; done`. But it does not work well with PyCharm which I really love.
--
Ticket URL: <https://code.djangoproject.com/ticket/24704#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.199592445c29bda998edbaeac0a813d3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.