2020-04-29 13:29:01 +00:00
|
|
|
from django.urls import path
|
2020-04-29 23:43:12 +00:00
|
|
|
from django.views.generic import RedirectView
|
2020-04-29 13:29:01 +00:00
|
|
|
|
2020-05-04 18:21:53 +00:00
|
|
|
from .views import CreateUserView, MyAccountView, UserDetailView,\
|
|
|
|
ProfileListView, OrphanedProfileListView, OrganizersListView
|
2020-04-29 13:29:01 +00:00
|
|
|
|
|
|
|
app_name = "member"
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('signup/', CreateUserView.as_view(), name="signup"),
|
2020-05-04 18:21:53 +00:00
|
|
|
path("my-account/", MyAccountView.as_view(), name="my_account"),
|
|
|
|
path("information/<int:pk>/", UserDetailView.as_view(), name="information"),
|
2020-04-29 23:43:12 +00:00
|
|
|
path("add-team/", RedirectView.as_view(pattern_name="index"), name="add_team"),
|
|
|
|
path("join-team/", RedirectView.as_view(pattern_name="index"), name="join_team"),
|
|
|
|
path("my-team/", RedirectView.as_view(pattern_name="index"), name="my_team"),
|
|
|
|
path("my-team/update/", RedirectView.as_view(pattern_name="index"), name="update_my_team"),
|
2020-04-30 19:07:12 +00:00
|
|
|
path("profiles/", ProfileListView.as_view(), name="all_profiles"),
|
|
|
|
path("orphaned-profiles/", OrphanedProfileListView.as_view(), name="orphaned_profiles"),
|
|
|
|
path("organizers/", OrganizersListView.as_view(), name="organizers"),
|
2020-04-29 13:29:01 +00:00
|
|
|
]
|