2021-02-27 20:07:48 +00:00
|
|
|
"""URLs for the membersystem"""
|
2022-08-09 14:33:56 +00:00
|
|
|
from django.conf import settings
|
2021-02-27 20:07:48 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
from django.contrib.auth.decorators import login_required
|
|
|
|
from django.urls import include
|
|
|
|
from django.urls import path
|
|
|
|
|
2021-02-28 22:03:32 +00:00
|
|
|
from .views import index
|
|
|
|
from .views import services_overview
|
2023-01-03 16:00:07 +00:00
|
|
|
from membership.views import members_admin
|
2023-01-03 20:36:34 +00:00
|
|
|
from membership.views import members_admin_detail
|
2021-12-13 19:44:09 +00:00
|
|
|
from membership.views import membership_overview
|
2021-02-28 22:03:32 +00:00
|
|
|
|
2021-02-27 20:07:48 +00:00
|
|
|
urlpatterns = [
|
2021-02-28 11:41:10 +00:00
|
|
|
path("", login_required(index), name="index"),
|
|
|
|
path("services/", login_required(services_overview), name="services-overview"),
|
2021-02-28 22:00:11 +00:00
|
|
|
path("membership/", membership_overview, name="membership-overview"),
|
2023-01-03 16:00:07 +00:00
|
|
|
path("admin/members/", members_admin, name="admin-members"),
|
2023-01-03 20:36:34 +00:00
|
|
|
path(
|
|
|
|
"admin/members/<int:member_id>/",
|
|
|
|
members_admin_detail,
|
|
|
|
name="admin-members-detail",
|
|
|
|
),
|
2021-02-28 22:03:32 +00:00
|
|
|
path("accounts/", include("allauth.urls")),
|
2023-01-03 20:36:34 +00:00
|
|
|
path("_admin/", admin.site.urls),
|
2021-02-27 20:07:48 +00:00
|
|
|
]
|
2022-08-09 14:33:56 +00:00
|
|
|
|
|
|
|
if settings.DEBUG:
|
2023-01-11 20:55:58 +00:00
|
|
|
urlpatterns = [
|
2022-08-09 17:29:42 +00:00
|
|
|
path("__debug__/", include("debug_toolbar.urls")),
|
2023-01-11 20:55:58 +00:00
|
|
|
path("__reload__/", include("django_browser_reload.urls")),
|
|
|
|
] + urlpatterns
|