2015-10-16 17:53:02 +00:00
|
|
|
from django.conf import settings
|
2017-08-10 04:07:55 +00:00
|
|
|
from django.conf.urls import include, url
|
2015-10-16 17:53:02 +00:00
|
|
|
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
|
2015-10-16 17:53:02 +00:00
|
|
|
from django.views.generic import TemplateView
|
2017-08-13 23:19:12 +00:00
|
|
|
from django.views.generic import RedirectView
|
2017-11-13 00:45:05 +00:00
|
|
|
from django_nyt.urls import get_pattern as get_nyt_pattern
|
|
|
|
from wiki.urls import get_pattern as get_wiki_pattern
|
2015-10-16 17:53:02 +00:00
|
|
|
|
|
|
|
from django.contrib import admin
|
|
|
|
|
2017-08-17 16:20:18 +00:00
|
|
|
from pinaxcon import views
|
|
|
|
|
2015-10-16 17:53:02 +00:00
|
|
|
import symposion.views
|
|
|
|
|
|
|
|
|
2016-02-27 22:55:59 +00:00
|
|
|
urlpatterns = [
|
2017-08-09 02:51:38 +00:00
|
|
|
url(r"^$", TemplateView.as_view(template_name="static_pages/homepage.html"), name="home"),
|
2017-08-10 04:25:12 +00:00
|
|
|
|
|
|
|
# about
|
2017-08-10 15:53:33 +00:00
|
|
|
url(r"^about/north-bay-python$", TemplateView.as_view(template_name="static_pages/about/north_bay_python.html"), name="about/north-bay-python"),
|
2017-09-27 04:12:35 +00:00
|
|
|
url(r"^about/petaluma$", TemplateView.as_view(template_name="static_pages/about/petaluma.html"), name="about/petaluma"),
|
2017-08-10 04:25:12 +00:00
|
|
|
url(r"^about/team$", TemplateView.as_view(template_name="static_pages/about/team.html"), name="about/team"),
|
2017-10-17 05:02:07 +00:00
|
|
|
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"),
|
2017-08-10 04:25:12 +00:00
|
|
|
url(r"^about/colophon$", TemplateView.as_view(template_name="static_pages/about/colophon.html"), name="about/colophon"),
|
|
|
|
|
|
|
|
# program
|
2017-09-27 04:12:35 +00:00
|
|
|
url(r"^program/events$", TemplateView.as_view(template_name="static_pages/program/events.html"), name="program/events"),
|
2017-11-14 04:04:22 +00:00
|
|
|
url(r"^events$", RedirectView.as_view(url="program/events")),
|
2017-08-10 15:53:33 +00:00
|
|
|
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"),
|
2017-08-20 03:33:21 +00:00
|
|
|
url(r"^proposals$", RedirectView.as_view(url="program/call-for-proposals")),
|
|
|
|
url(r"^cfp$", RedirectView.as_view(url="program/call-for-proposals")),
|
|
|
|
|
2017-08-10 04:25:12 +00:00
|
|
|
# attend
|
2018-06-30 20:06:49 +00:00
|
|
|
# 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"),
|
2017-09-27 04:12:35 +00:00
|
|
|
url(r"^attend/travel$", TemplateView.as_view(template_name="static_pages/attend/travel.html"), name="attend/travel"),
|
2018-06-30 20:06:49 +00:00
|
|
|
# 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"),
|
2018-07-04 20:01:56 +00:00
|
|
|
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")),
|
2018-06-30 20:06:49 +00:00
|
|
|
# url(r"^guides$",TemplateView.as_view(template_name="static_pages/attend/guides.html"), name="attend/guides"),
|
|
|
|
# url(r"^guide$", RedirectView.as_view(url="guides")),
|
2017-11-14 02:05:51 +00:00
|
|
|
|
2017-11-30 04:37:26 +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")),
|
|
|
|
|
2018-06-30 20:06:49 +00:00
|
|
|
# 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")),
|
2017-09-27 04:12:35 +00:00
|
|
|
|
2017-08-10 15:53:33 +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"),
|
2018-07-11 17:50:33 +00:00
|
|
|
url(r"^coc$", RedirectView.as_view(url="code-of-conduct")),
|
2017-08-10 15:53:33 +00:00
|
|
|
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"),
|
2017-09-27 04:36:39 +00:00
|
|
|
url(r"^terms$", RedirectView.as_view(url="terms-and-conditions")),
|
2017-08-10 04:25:12 +00:00
|
|
|
|
|
|
|
# sponsor
|
2017-08-16 04:57:51 +00:00
|
|
|
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"),
|
2017-08-10 15:53:33 +00:00
|
|
|
url(r"^sponsors/become-a-sponsor$", TemplateView.as_view(template_name="static_pages/sponsors/become_a_sponsor.html"), name="sponsors/become-a-sponsor"),
|
2017-09-27 04:36:39 +00:00
|
|
|
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")),
|
2017-08-10 04:25:12 +00:00
|
|
|
|
|
|
|
# news
|
2017-08-09 03:38:41 +00:00
|
|
|
url(r"^news$", TemplateView.as_view(template_name="static_pages/news.html"), name="news"),
|
2017-08-09 14:23:29 +00:00
|
|
|
|
2017-08-10 04:25:12 +00:00
|
|
|
# Django, Symposion, and Registrasion URLs
|
2017-08-09 14:23:29 +00:00
|
|
|
|
2015-10-16 17:53:02 +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"),
|
2017-08-18 16:39:54 +00:00
|
|
|
# Override the default account_login view with one that takes email addys
|
|
|
|
url(r"^account/login/$", views.EmailLoginView.as_view(), name="account_login"),
|
2015-10-16 17:53:02 +00:00
|
|
|
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
|
|
|
|
2016-03-30 04:13:50 +00:00
|
|
|
# Required by registrasion
|
2017-10-03 01:26:09 +00:00
|
|
|
url(r'^tickets/', include('registrasion.urls')),
|
2016-03-30 04:13:50 +00:00
|
|
|
url(r'^nested_admin/', include('nested_admin.urls')),
|
|
|
|
|
2017-11-13 00:45:05 +00:00
|
|
|
url(r'^wiki/notifications/', get_nyt_pattern()),
|
|
|
|
url(r'^wiki/', get_wiki_pattern())
|
|
|
|
|
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
|
|
|
]
|
2015-10-16 17:53:02 +00:00
|
|
|
|
2017-11-13 00:45:05 +00:00
|
|
|
|
2015-10-16 17:53:02 +00:00
|
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
2017-08-17 16:20:18 +00:00
|
|
|
|
|
|
|
handler500 = views.server_error
|