symposion_app/pinaxcon/urls.py

47 lines
1.7 KiB
Python
Raw Normal View History

from django.conf import settings
2017-03-05 07:34:15 +00:00
from django.conf.urls import include, url
from django.conf.urls.static import static
2017-06-26 12:43:58 +00:00
from django.views.generic import RedirectView
from django.views.generic import TemplateView
2017-10-16 10:53:18 +00:00
from django.contrib.flatpages.views import flatpage
from django.contrib import admin
import symposion.views
2016-02-27 22:55:59 +00:00
urlpatterns = [
url(r'^saml2/', include('djangosaml2.urls')),
url(r"^admin/", include(admin.site.urls)),
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")),
url(r"^conference/", include("symposion.conference.urls")),
url(r"^teams/", include("symposion.teams.urls")),
Adds registration to the website (#69) * Updates settings and requirements * First pass at attendee profile * Imports the registration templates; defines attendee profile models etc. * First pass at themeing the registration form. * First page of the registration form: done! * Makes form validation nicer * Adds populate_inventory * Improves the additional items page * Allows for rendering of formsets. * Adds support for formset extending. * Removes formset delete buttons * Review page is LCA-ified * Fixes some formset behaviour * Fixes urls.py * LCA-ifies product_category.html * Invoices * Credit card payments * s/register/tickets/ * Show registration features only whilst products are available (think about this better, later) * Updates the attendee profile form page * Form tidy-up * Makes it so that address info is copied from attendee profile to the address details are autofilled in Stripe. * Adds feature to offer Australians a dropdown list of states rather than free text. * Allow toggling of void invoices. * Adds backgrounds to the headers in the registration process * Improves the review page * Adds “Linux Australia” to invoice details. * Do not show balance due on void/refunded invoices. * More thumbing * Adds a link back to reports on each report. * Tokenisation language. * Another bug in credit card processing. * Adds stripe refunds to options * Removes spurious dashboard button. * Tidies up the presentation of discounts. * Tidies up presentation of voucher form. * Fixes sponsor logo appearance with adblock. * Front page tweaks * Lets us specify alternative URLs in homepage panels * more * Updates discount amounts. * More website fixes * Changes language on pay invoice button * Adds contact details to the invoice template. * Updates the currency message in the invoice template. * Explicitly includes e-mail address, because theme_contact_email doesn’t propagate * Changes payment text. * s/registration/selections/ * Removes final face palm * Fixes lack of speaker dinner tickets for actual presenters. * Adjusts wording in invoice e-mails * Invoice wording. * (FIX) * Fixes margins on lists and tables * Improvements arising from those CSS fixes. * Changes description tags.
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')),
url(r'^checkin/', include('regidesk.urls')),
2017-10-16 10:53:18 +00:00
url(r'^pages/', include('django.contrib.flatpages.urls')),
2017-06-26 12:46:11 +00:00
url(r'^dashboard/', RedirectView.as_view(url='/')),
2018-01-14 15:03:43 +00:00
url(r'^boardingpass', RedirectView.as_view(pattern_name="regidesk:boardingpass")),
2017-06-26 12:20:20 +00:00
url(r'^$', symposion.views.dashboard, name="dashboard"),
2016-02-27 22:55:59 +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)))
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'}))
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)