#24704: Development server do not restart on SynaxError
--------------------------------------+--------------------
     Reporter:  artemrizhov           |      Owner:  nobody
         Type:  Bug                   |     Status:  new
    Component:  Core (System checks)  |    Version:  1.7
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 Django documentation states:

 > '''each time you change Python code''' while the server is running, the
 server will check your entire Django project for errors (see the check
 command). If any errors are found, they will be printed to standard
 output, '''but it won’t stop the server'''.
 https://docs.djangoproject.com/en/1.7/ref/django-admin/#runserver-port-or-
 address-port

 However in my case the server process finishes with exit code 1 when
 syntax error appears in admin.py or models.py. Below is the error message
 that I see in my console.

 {{{
   File "/home/.../src/core/admin.py", line 16
     foo =
         ^
 SyntaxError: invalid syntax
 }}}

 So it seems there is either a bug or a mistake in the documentation.

 Django 1.7.5
 Python 2.7.6
 virtualenv 1.11.4
 Ubuntu 14.04.2 LTS

--
Ticket URL: <https://code.djangoproject.com/ticket/24704>
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/054.e638b326f4a2541ae87bf4e0e49aed07%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to