2015-10-16 17:53:02 +00:00
|
|
|
from django.conf import settings
|
|
|
|
from django.conf.urls import patterns, include, url
|
|
|
|
from django.conf.urls.static import static
|
|
|
|
from django.views.generic import TemplateView
|
|
|
|
|
2016-06-22 00:07:27 +00:00
|
|
|
from wagtail.wagtailadmin import urls as wagtailadmin_urls
|
|
|
|
from wagtail.wagtailcore import urls as wagtail_urls
|
|
|
|
|
2016-11-23 06:08:00 +00:00
|
|
|
from wiki.urls import get_pattern as get_wiki_pattern
|
|
|
|
from django_nyt.urls import get_pattern as get_nyt_pattern
|
|
|
|
|
2015-10-16 17:53:02 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
import symposion.views
|
|
|
|
|
2017-02-17 07:36:58 +00:00
|
|
|
import debug_toolbar
|
|
|
|
|
|
|
|
|
|
|
|
import sys
|
2015-10-16 17:53:02 +00:00
|
|
|
|
2016-02-27 22:55:59 +00:00
|
|
|
urlpatterns = [
|
2017-01-16 05:22:14 +00:00
|
|
|
#url(r"^$", TemplateView.as_view(template_name="pyconau2017-homepage.html"), name="home"),
|
2015-10-16 17:53:02 +00:00
|
|
|
url(r"^admin/", include(admin.site.urls)),
|
|
|
|
|
2017-02-17 07:36:58 +00:00
|
|
|
# Debug toolbar
|
|
|
|
url(r'^__debug__/', include(debug_toolbar.urls)),
|
|
|
|
|
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")),
|
2016-06-29 13:17:15 +00:00
|
|
|
#url(r"^sponsors/", include("symposion.sponsorship.urls")),
|
2015-10-16 17:53:02 +00:00
|
|
|
url(r"^reviews/", include("symposion.reviews.urls")),
|
|
|
|
url(r"^schedule/", include("symposion.schedule.urls")),
|
|
|
|
|
|
|
|
url(r"^teams/", include("symposion.teams.urls")),
|
|
|
|
|
|
|
|
url(r"^boxes/", include("pinax.boxes.urls")),
|
2016-06-22 00:07:27 +00:00
|
|
|
|
|
|
|
url(r'^cms/', include(wagtailadmin_urls)),
|
|
|
|
|
2016-09-30 10:46:05 +00:00
|
|
|
# Required by registrasion
|
|
|
|
url(r'^tickets/payments/', include('registripe.urls')),
|
|
|
|
url(r'^tickets/', include('registrasion.urls')),
|
|
|
|
url(r'^nested_admin/', include('nested_admin.urls')),
|
|
|
|
|
2016-11-23 06:08:00 +00:00
|
|
|
# Wiki
|
|
|
|
url(r'^notifications/', get_nyt_pattern()),
|
|
|
|
url(r'^wiki/', get_wiki_pattern()),
|
|
|
|
|
2016-06-22 00:07:27 +00:00
|
|
|
# Default catch-all for wagtail pages.
|
|
|
|
url(r'^', include(wagtail_urls)),
|
|
|
|
|
|
|
|
# Matches *NOTHING* -- remove once site_tree is fixed
|
|
|
|
url(r"^$", TemplateView.as_view(template_name="homepage.html"), name="home"),
|
|
|
|
|
2016-03-30 04:13:50 +00:00
|
|
|
# Demo payment gateway and related features
|
2017-02-17 07:36:58 +00:00
|
|
|
#url(r"^register/pinaxcon/", include("pinaxcon.registrasion.urls")),
|
|
|
|
|
2016-02-27 22:55:59 +00:00
|
|
|
]
|
2015-10-16 17:53:02 +00:00
|
|
|
|
2017-02-17 07:36:58 +00:00
|
|
|
if settings.DEBUG:
|
|
|
|
import debug_toolbar
|
|
|
|
#urlpatterns += [ url(r'^__debug__/', include(debug_toolbar.urls)), ]
|
|
|
|
|
|
|
|
|
2015-10-16 17:53:02 +00:00
|
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|