File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,22 +60,22 @@ For example, you can append `router.urls` to a list of existing views…
60
60
router.register(r'accounts', AccountViewSet)
61
61
62
62
urlpatterns = [
63
- url(r'^forgot-password/$, ForgotPasswordFormView.as_view(),
63
+ url(r'^forgot-password/$' , ForgotPasswordFormView.as_view(),
64
64
]
65
65
66
66
urlpatterns += router.urls
67
67
68
68
Alternatively you can use Django's ` include ` function, like so…
69
69
70
70
urlpatterns = [
71
- url(r'^forgot-password/$, ForgotPasswordFormView.as_view(),
71
+ url(r'^forgot-password/$' , ForgotPasswordFormView.as_view(),
72
72
url(r'^', include(router.urls))
73
73
]
74
74
75
75
Router URL patterns can also be namespaces.
76
76
77
77
urlpatterns = [
78
- url(r'^forgot-password/$, ForgotPasswordFormView.as_view(),
78
+ url(r'^forgot-password/$' , ForgotPasswordFormView.as_view(),
79
79
url(r'^api/', include(router.urls, namespace='api'))
80
80
]
81
81
You can’t perform that action at this time.
0 commit comments