Changeset View
Changeset View
Standalone View
Standalone View
bid_main/urls.py
| Show All 12 Lines | urlpatterns = [ | ||||
| url(r"^login$", normal_pages.LoginView.as_view(), name="login"), | url(r"^login$", normal_pages.LoginView.as_view(), name="login"), | ||||
| url(r"^about$", normal_pages.AboutView.as_view(), name="about"), | url(r"^about$", normal_pages.AboutView.as_view(), name="about"), | ||||
| url( | url( | ||||
| r"^logout$", | r"^logout$", | ||||
| normal_pages.LogoutView.as_view(next_page="bid_main:about"), | normal_pages.LogoutView.as_view(next_page="bid_main:about"), | ||||
| name="logout", | name="logout", | ||||
| ), | ), | ||||
| url(r"^switch/?$", normal_pages.SwitchUserView.as_view(), name="switch_user"), | url(r"^switch/?$", normal_pages.SwitchUserView.as_view(), name="switch_user"), | ||||
| url(r"^delete/?$", normal_pages.DeleteUserView.as_view(), name="delete_user"), | |||||
sybren: There are multiple things deletable in Blender ID (like auth tokens / app associations). I… | |||||
sybrenUnsubmitted Done Inline ActionsBy inserting this rule here, the switch and switch/<switch_to> URLs are further apart from each other. It's because the latter exists that the former has an optional slash. I think the delete rule should either be above the two switch rules, or below them, but not in between. I also don't think there needs to be an optional slash in the URL, as there is no delete/xxx rule. sybren: By inserting this rule here, the `switch` and `switch/<switch_to>` URLs are further apart from… | |||||
| url( | url( | ||||
| r"^switch/(?P<switch_to>.+)$", | r"^switch/(?P<switch_to>.+)$", | ||||
| normal_pages.SwitchUserView.as_view(), | normal_pages.SwitchUserView.as_view(), | ||||
| name="switch_user", | name="switch_user", | ||||
| ), | ), | ||||
| url( | url( | ||||
| r"^applications", | r"^applications", | ||||
| normal_pages.ApplicationTokenView.as_view(), | normal_pages.ApplicationTokenView.as_view(), | ||||
| ▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines | |||||
There are multiple things deletable in Blender ID (like auth tokens / app associations). I don't really feel strongly about this, but maybe delete-my-account is a more explicit one? It'll also pop up on DuckDuckGo searches when people search for "blender delete account"; search engines love matches on the URL itself.