2015-10-16 17:53:02 +00:00
|
|
|
from django.conf import settings
|
2017-03-05 07:34:15 +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-06-26 12:43:58 +00:00
|
|
|
from django.views.generic import RedirectView
|
2015-10-16 17:53:02 +00:00
|
|
|
from django.views.generic import TemplateView
|
|
|
|
|
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
import symposion.views
|
|
|
|
|
2017-02-17 07:36:58 +00:00
|
|
|
|
2016-02-27 22:55:59 +00:00
|
|
|
urlpatterns = [
|
2017-03-26 04:37:30 +00:00
|
|
|
url(r'^saml2/', include('djangosaml2.urls')),
|
2015-10-16 17:53:02 +00:00
|
|
|
url(r"^admin/", include(admin.site.urls)),
|
|
|
|
|
2017-01-16 07:24:21 +00:00
|
|
|
url(r"^speaker/", include("symposion.speakers.urls")),
|
|
|
|
url(r"^proposals/", include("symposion.proposals.urls")),
|
|
|
|
url(r"^reviews/", include("symposion.reviews.urls")),
|
|
|
|
url(r"^schedule/", include("symposion.schedule.urls")),
|
2015-10-16 17:53:02 +00:00
|
|
|
|
2017-01-16 07:24:21 +00:00
|
|
|
url(r"^teams/", include("symposion.teams.urls")),
|
2015-10-16 17:53:02 +00:00
|
|
|
|
2016-09-30 10:46:05 +00:00
|
|
|
# Required by registrasion
|
2017-01-16 07:24:21 +00:00
|
|
|
url(r'^tickets/payments/', include('registripe.urls')),
|
|
|
|
url(r'^tickets/', include('registrasion.urls')),
|
|
|
|
url(r'^nested_admin/', include('nested_admin.urls')),
|
2016-09-30 10:46:05 +00:00
|
|
|
|
2017-06-26 12:46:11 +00:00
|
|
|
url(r'^dashboard/', RedirectView.as_view(url='/')),
|
2017-06-26 12:20:20 +00:00
|
|
|
url(r'^$', symposion.views.dashboard, name="dashboard"),
|
2016-06-22 00:07:27 +00:00
|
|
|
|
2016-02-27 22:55:59 +00:00
|
|
|
]
|
2015-10-16 17:53:02 +00:00
|
|
|
|
2017-03-02 10:06:28 +00:00
|
|
|
if settings.DEBUG:
|
2017-03-05 07:34:15 +00:00
|
|
|
import debug_toolbar
|
|
|
|
urlpatterns.insert(0, url(r'^__debug__/', include(debug_toolbar.urls)))
|
2017-08-27 12:07:37 +00:00
|
|
|
if settings.DEV_MODE:
|
|
|
|
from django.contrib.auth.views import login, logout
|
|
|
|
urlpatterns.insert(0, url(r'^accounts/logout', logout, {'template_name': 'admin/logout.html'}))
|
|
|
|
urlpatterns.insert(0, url(r'^accounts/login', login, {'template_name': 'admin/login.html'}))
|
2017-02-17 07:36:58 +00:00
|
|
|
|
2015-10-16 17:53:02 +00:00
|
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|