On 4/12/2014 7:58 PM, Mario De Frutos Dieguez wrote:
> First of all i want to say hi!, i'm new in the group :)
>
> I'm having a problem with the development server (a.k.a runserver). When
> i'm working in a file but i have an error (for example indent error or
> syntactic error) the server crash instead of report the error and keep
> running.
>
> I've been reading the doc and i saw this phrase "..If any errors are
> found, they will be printed to standard output, but it won’t stop the
> server..."
> (https://docs.djangoproject.com/en/dev/ref/django-admin/#runserver-port-or-address-port).
>
> What i don't know if this is a bug or the expected behaviour.
It is expected behaviour. In Django 1.6+ a syntax error or indent error
doesn't stop the dev server. If you read the traceback and see where the
error originates, you can open that source file in your editor, fix the
problem and when you save it, the dev server detects the repair and
keeps on keeping on!
Very clever IMO
Cheers
>
> Thank you :)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com
> <mailto:django-users@googlegroups.com>.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3af61c48-af43-4947-8d18-7c9fbb393480%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/3af61c48-af43-4947-8d18-7c9fbb393480%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/54805429.1080703%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment