-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathurls.py
36 lines (34 loc) · 1.39 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth.views import LoginView, LogoutView
from django.urls import include, path, re_path
from django.views.generic.base import TemplateView
from . import views
urlpatterns = [
path("", TemplateView.as_view(template_name="index.html"), name="index"),
path(
"constitution/",
TemplateView.as_view(template_name="constitution.html"),
name="constitution",
),
path(
"resources/",
TemplateView.as_view(template_name="computing_resources.html"),
name="computing_resources",
),
path("join/", TemplateView.as_view(template_name="join.html"), name="join"),
path("alumni/", TemplateView.as_view(template_name="alumni.html"), name="alumni"),
path(
"login/",
LoginView.as_view(template_name="registration/login.html"),
name="login",
),
path(
"contact/", TemplateView.as_view(template_name="contact.html"), name="contact"
),
path("logout/", LogoutView.as_view(), name="logout"),
path("profile/", views.profile, name="my_profile"),
path("profile/<username>/", views.profile, name="profile"),
path("404/", TemplateView.as_view(template_name="404.html")),
path("minutes/", TemplateView.as_view(template_name="meeting_minutes.html")),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)