more frontend updates. Added membership only area in debug mode

This commit is contained in:
2025-04-21 10:13:01 -05:00
parent 77ccc5c2fe
commit 4c0605474c
13 changed files with 776 additions and 88 deletions

View File

@@ -1,8 +1,21 @@
from django.urls import path
from django.conf import settings
from . import views
urlpatterns = [
if settings.DEBUG:
authenticated_views = [
path('login/',views.login, name="login"),
path('set_password/',views.set_password, name="set_password"),
path('password_reset/',views.password_reset, name="password_reset"),
path('directory/',views.member_directory, name="directory"),
path('dashboard/',views.member_dashboard, name="dashboard"),
]
else:
authenticated_views = []
urlpatterns = authenticated_views + [
# path("", views.index, name="index"),
# path("useful_links", views.useful_links, name="useful_links"),
# path("about_us", views.about_us, name="about_us"),
@@ -23,4 +36,9 @@ urlpatterns = [
# stripe specific urls below
path("config/", views.stripe_config),
path("create-checkout-session/", views.create_checkout_session),
# authenticated views
]