Opened 6 years ago
Closed 6 years ago
#30432 closed Uncategorized (duplicate)
Django development server shutdown on error.
Reported by: | User632716 | Owned by: | nobody |
---|---|---|---|
Component: | Utilities | Version: | 2.2 |
Severity: | Normal | Keywords: | dev-server devserver |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
As in my question on SO [here](https://stackoverflow.com/questions/55953263/django-development-server-shutdown-on-error) I am running a dev server on localhost to test a django app. About a week ago the dev server started exiting on error- which is not ideal.
To give you an instance, imagine I want to create a new view, I make my template, then I add the following in urls:
urlpatterns = [...,path('forgotten-password', ForgottenPassword.as_view(), name='forgotten_password'),...]
I haven't yet created the ForgottenPassword class based view yet, so rightly the server throws the error:
File "/code/accounts/urls.py", line 19, in <module>
path('forgotten-password', ForgottenPassword.as_view(), name='forgotten_password'),
NameError: name 'ForgottenPassword' is not defined
The server then quits however. This is not the desired behavior. I expect the server to remain in an error state until i fix the error (this happened up to about a week ago). It was around the same time that we upgraded from django 2.1 to 2.2, is this a desired behaviour in 2.2?
- Having downgraded to 2.1 we no longer have this problem, it must be to do with the update
Change History (4)
comment:1 by , 6 years ago
Description: | modified (diff) |
---|
comment:2 by , 6 years ago
Description: | modified (diff) |
---|
comment:3 by , 6 years ago
Description: | modified (diff) |
---|
comment:4 by , 6 years ago
Component: | Uncategorized → Utilities |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Summary: | Django development server shutdown on error → Django development server shutdown on error. |
This bug has been fixed in Django
2.2.1
, see release notes:Duplicate of #30323.