Files
@ 404d2fb60d1a
Branch filter:
Location: copyleftconf-website-fork/pinaxcon/urls.py - annotation
404d2fb60d1a
6.8 KiB
text/x-python
Merge remote-tracking branch 'origin/master' into prod
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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | 04f246d85071 fa46fb07d648 04f246d85071 2388d47b60c4 04f246d85071 0c14e46ff969 a3af1be7574c a3af1be7574c 04f246d85071 04f246d85071 04f246d85071 ce1e8dd6d710 ce1e8dd6d710 04f246d85071 04f246d85071 04f246d85071 0b1da0e85e83 d5c83fa496d9 febf21c8480b febf21c8480b a4495754c89a a8b5e93bd9cd febf21c8480b 520cb1c1efad 520cb1c1efad febf21c8480b febf21c8480b febf21c8480b a8b5e93bd9cd 3a0724266cc3 a4495754c89a a4495754c89a d9bae1730a26 d9bae1730a26 d9bae1730a26 febf21c8480b a8b5e93bd9cd a8b5e93bd9cd 41ba224759b8 a8b5e93bd9cd bcaa50066573 a8b5e93bd9cd a8b5e93bd9cd fdee3d487831 eb7bcfd0548c eb7bcfd0548c acf476a2938d 6de963c1166d 6de963c1166d 97ebdc4aa9d5 97ebdc4aa9d5 97ebdc4aa9d5 97ebdc4aa9d5 b0d988a339f0 b0d988a339f0 b0d988a339f0 b0d988a339f0 a8b5e93bd9cd a4495754c89a a4495754c89a a4495754c89a a4495754c89a e788626c7fa4 febf21c8480b febf21c8480b 2388d47b60c4 2388d47b60c4 a4495754c89a e788626c7fa4 e788626c7fa4 e788626c7fa4 febf21c8480b febf21c8480b d89bee5e9f37 c7db6c77b8b0 febf21c8480b c7db6c77b8b0 04f246d85071 04f246d85071 a6cf86f82654 30f4b245c065 30f4b245c065 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 da1ac265d27c 68749530a378 da1ac265d27c 6c94eb9e91ee cce39468e530 6c94eb9e91ee 6c94eb9e91ee a3af1be7574c a3af1be7574c a3af1be7574c dc24e64d4f99 dc24e64d4f99 0b1da0e85e83 04f246d85071 a3af1be7574c 04f246d85071 ce1e8dd6d710 ce1e8dd6d710 | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib.staticfiles.templatetags.staticfiles import static as _static
from django.views.generic import TemplateView
from django.views.generic import RedirectView
from django_nyt.urls import get_pattern as get_nyt_pattern
from wiki.urls import get_pattern as get_wiki_pattern
from django.contrib import admin
from pinaxcon import views
import symposion.views
urlpatterns = [
url(r"^$", TemplateView.as_view(template_name="static_pages/homepage.html"), name="home"),
# about
url(r"^about/north-bay-python$", TemplateView.as_view(template_name="static_pages/about/north_bay_python.html"), name="about/north-bay-python"),
url(r"^about/petaluma$", TemplateView.as_view(template_name="static_pages/about/petaluma.html"), name="about/petaluma"),
url(r"^about/team$", TemplateView.as_view(template_name="static_pages/about/team.html"), name="about/team"),
url(r"^about/transparency$", TemplateView.as_view(template_name="static_pages/about/transparency/transparency.html"), name="about/transparency"),
url(r"^about/program-transparency$", TemplateView.as_view(template_name="static_pages/about/transparency/program.html"), name="about/program-transparency"),
url(r"^about/colophon$", TemplateView.as_view(template_name="static_pages/about/colophon.html"), name="about/colophon"),
# 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")),
# attend
url(r"^attend$", TemplateView.as_view(template_name="static_pages/attend/attend.html"), name="attend/attend"),
url(r"^tickets$", RedirectView.as_view(url="attend")),
url(r"^tickets/buy$", views.buy_ticket, name="buy_ticket"),
url(r"^attend/business-case$", TemplateView.as_view(template_name="static_pages/attend/business-case.html"), name="attend/business-case"),
url(r"^attend/finaid$", TemplateView.as_view(template_name="static_pages/attend/finaid.html"), name="attend/finaid"),
url(r"^attend/travel$", TemplateView.as_view(template_name="static_pages/attend/travel.html"), name="attend/travel"),
url(r"^attend/hotels$", TemplateView.as_view(template_name="static_pages/attend/hotels.html"), name="attend/hotels"),
url(r"^attend/tshirt$", TemplateView.as_view(template_name="static_pages/attend/tshirt.html"), name="attend/tshirt"),
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")),
url(r"^guides$",TemplateView.as_view(template_name="static_pages/attend/guides.html"), name="attend/guides"),
url(r"^guide$", RedirectView.as_view(url="guides")),
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")),
url(r"^attend/food$", TemplateView.as_view(template_name="static_pages/attend/food.html"), name="attend/food"),
url(r"^food$", RedirectView.as_view(url="attend/food")),
url(r"^attend/transit$", TemplateView.as_view(template_name="static_pages/attend/transit.html"), name="attend/transit"),
url(r"^transit$", RedirectView.as_view(url="attend/transit")),
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"^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
url(r"^sponsors/prospectus$", RedirectView.as_view(url=_static("assets/northbaypython_prospectus.pdf")), name="sponsors/prospectus"),
url(r"^northbaypython_prospectus.pdf$", RedirectView.as_view(url=_static("assets/northbaypython_prospectus.pdf")), name="northbaypython_prospectus.pdf"),
url(r"^sponsors/become-a-sponsor$", TemplateView.as_view(template_name="static_pages/sponsors/become_a_sponsor.html"), name="sponsors/become-a-sponsor"),
url(r"^sponsors/donate$", TemplateView.as_view(template_name="static_pages/sponsors/donate.html"), name="sponsors/donate"),
url(r"^donate$", RedirectView.as_view(url="sponsors/donate")),
url(r"^about/donate$", RedirectView.as_view(url="sponsors/donate")),
# news
url(r"^news$", TemplateView.as_view(template_name="static_pages/news.html"), name="news"),
# Django, Symposion, and Registrasion URLs
url(r"^admin/", include(admin.site.urls)),
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")),
# Demo payment gateway and related features
url(r"^tickets/payments/", include("registripe.urls")),
# Required by registrasion
url(r'^tickets/', include('registrasion.urls')),
url(r'^nested_admin/', include('nested_admin.urls')),
url(r'^wiki/notifications/', get_nyt_pattern()),
url(r'^wiki/', get_wiki_pattern())
# Catch-all MUST go last.
#url(r"^", include("pinax.pages.urls")),
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
handler500 = views.server_error
|