Changes between Initial Version and Version 1 of Ticket #30432
- Timestamp:
- May 2, 2019, 8:45:19 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30432 – Description
initial v1 3 3 To give you an instance, imagine I want to create a new view, I make my template, then I add the following in urls: 4 4 5 ```python 6 urlpatterns = [ 7 ... 8 path('forgotten-password', ForgottenPassword.as_view(), name='forgotten_password'), 9 ] 10 ``` 5 6 urlpatterns = [ 7 ... 8 path('forgotten-password', ForgottenPassword.as_view(), name='forgotten_password'), 9 ] 11 10 12 11 I haven't yet created the ForgottenPassword class based view yet, so rightly the server throws the error: 13 12 14 ```python 15 File "/code/accounts/urls.py", line 19, in <module> 16 path('forgotten-password', ForgottenPassword.as_view(), name='forgotten_password'), 17 NameError: name 'ForgottenPassword' is not defined 18 ``` 13 File "/code/accounts/urls.py", line 19, in <module> 14 path('forgotten-password', ForgottenPassword.as_view(), name='forgotten_password'), 15 NameError: name 'ForgottenPassword' is not defined 16 19 17 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?