copyleftconf-website/pinaxcon/urls.py

95 lines
4.7 KiB
Python
Raw Normal View History

from django.conf import settings
2017-08-10 04:07:55 +00:00
from django.conf.urls import include, url
from django.conf.urls.static import static
2017-08-16 04:57:51 +00:00
from django.contrib.staticfiles.templatetags.staticfiles import static as _static
from django.views.generic import TemplateView
from django.views.generic import RedirectView
from django.contrib import admin
from pinaxcon import views
import symposion.views
DONATE_REDIRECT = RedirectView.as_view(url='https://sfconservancy.org/donate/')
2019-10-10 18:16:41 +00:00
PROSPECTUS_REDIRECT = RedirectView.as_view(url=_static('assets/2020_CopyleftConf_prospectus.pdf'))
2016-02-27 22:55:59 +00:00
urlpatterns = [
2019-06-29 09:06:30 +00:00
url(r"^$", TemplateView.as_view(template_name="static_pages/homepage.html"), name="home"),
# about
url(r"^about$", TemplateView.as_view(template_name="static_pages/about.html"), name="about"),
2019-10-10 17:43:05 +00:00
url(r"^about/venue$", TemplateView.as_view(template_name="static_pages/venue.html"), name="venue"),
2019-10-10 18:28:30 +00:00
url(r"^video$", TemplateView.as_view(template_name="static_pages/video.html"), name="video"),
# program
url(r"^program/events$", TemplateView.as_view(template_name="static_pages/program/events.html"), name="program/events"),
url(r"^events$", RedirectView.as_view(url="program/events")),
url(r"^program/call-for-proposals$", TemplateView.as_view(template_name="static_pages/program/call_for_proposals.html"), name="program/call-for-proposals"),
# url(r"^program/selection-process$", TemplateView.as_view(template_name="static_pages/program/selection_process.html"), name="program/selection-process"),
url(r"^proposals$", RedirectView.as_view(url="program/call-for-proposals")),
url(r"^cfp$", RedirectView.as_view(url="program/call-for-proposals")),
2017-08-20 03:33:21 +00:00
# attend
url(r"^attend$", views.buy_ticket),
url(r"^tickets$", views.buy_ticket),
url(r"^tickets/buy$", views.buy_ticket, name="buy_ticket"),
# url(r"^attend/accessibility-and-accommodations$",TemplateView.as_view(template_name="static_pages/attend/accommodations.html"), name="attend/accessibility-and-accommodations"),
# url(r"^accessibility$", RedirectView.as_view(url="attend/accessibility-and-accommodations")),
2019-06-29 07:11:12 +00:00
# url(r"^safety$", TemplateView.as_view(template_name="static_pages/safety.html"), name="safety"),
# url(r"^emergencies$", RedirectView.as_view(url="safety")),
# url(r"^emergency$", RedirectView.as_view(url="safety")),
2019-06-29 07:11:12 +00:00
url(r"^code-of-conduct$", TemplateView.as_view(template_name="static_pages/code_of_conduct/code_of_conduct.html"), name="code-of-conduct"),
url(r"^coc$", RedirectView.as_view(url="code-of-conduct")),
# url(r"^code-of-conduct/harassment-incidents$", TemplateView.as_view(template_name="static_pages/code_of_conduct/harassment_procedure_attendee.html"), name="code-of-conduct/harassment-incidents"),
# url(r"^code-of-conduct/harassment-staff-procedures$", TemplateView.as_view(template_name="static_pages/code_of_conduct/harassment_procedure_staff.html"), name="code-of-conduct/harassment-staff-procedures"),
url(r"^terms-and-conditions$", TemplateView.as_view(template_name="static_pages/terms_and_conditions.html"), name="terms-and-conditions"),
url(r"^terms$", RedirectView.as_view(url="terms-and-conditions")),
# sponsor
2019-10-10 18:16:41 +00:00
url(r"^sponsors/prospectus$", PROSPECTUS_REDIRECT, name="sponsors/prospectus"),
url(r"^sponsors/become-a-sponsor$", PROSPECTUS_REDIRECT, name="sponsors/become-a-sponsor"),
url(r"^sponsors/donate$", DONATE_REDIRECT),
url(r"^donate$", DONATE_REDIRECT),
url(r"^about/donate$", DONATE_REDIRECT),
# news
# url(r"^news$", TemplateView.as_view(template_name="static_pages/news.html"), name="news"),
2017-08-09 14:23:29 +00:00
# Django, Symposion, and Registrasion URLs
2017-08-09 14:23:29 +00:00
url(r"^admin/", include(admin.site.urls)),
2017-08-18 15:46:51 +00:00
url(r"^login$", views.account_login, name="nbpy_login"),
# Override the default account_login view with one that takes email addys
url(r"^account/login/$", views.EmailLoginView.as_view(), name="account_login"),
url(r"^account/", include("account.urls")),
url(r"^dashboard/", symposion.views.dashboard, name="dashboard"),
url(r"^speaker/", include("symposion.speakers.urls")),
url(r"^proposals/", include("symposion.proposals.urls")),
url(r"^sponsors/", include("symposion.sponsorship.urls")),
url(r"^reviews/", include("symposion.reviews.urls")),
url(r"^schedule/", include("symposion.schedule.urls")),
url(r"^teams/", include("symposion.teams.urls")),
2016-09-21 00:46:52 +00:00
# Demo payment gateway and related features
2017-10-03 02:15:30 +00:00
url(r"^tickets/payments/", include("registripe.urls")),
2016-09-21 00:46:52 +00:00
# Required by registrasion
url(r'^tickets/', include('registrasion.urls')),
url(r'^nested_admin/', include('nested_admin.urls')),
2016-09-01 23:59:10 +00:00
# Catch-all MUST go last.
#url(r"^", include("pinax.pages.urls")),
2016-02-27 22:55:59 +00:00
]
2017-11-13 00:45:05 +00:00
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
handler500 = views.server_error