Changes between Initial Version and Version 1 of Ticket #30432


Ignore:
Timestamp:
May 2, 2019, 8:45:19 AM (6 years ago)
Author:
User632716
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30432 – Description

    initial v1  
    33To give you an instance, imagine I want to create a new view, I make my template, then I add the following in urls:
    44
    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    ]
    1110
    1211I haven't yet created the ForgottenPassword class based view yet, so rightly the server throws the error:
    1312
    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
    1917The 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?
Back to Top