a95825ede8
- Things are suggested in python3 porting guide. https://docs.djangoproject.com/en/1.8/topics/python3/ 1. adding ```from django.utils.encoding import python_2_unicode_compatible``` 2. ``` __str__``` instead of ```__unicode__``` https://docs.djangoproject.com/en/1.8/topics/python3/#str-and-unicode-methods 3. Adding ```from __future__ import unicode_literals``` at the top of your Python modules https://docs.djangoproject.com/en/1.8/topics/python3/#unicode-literals 4. Removing the `u` prefix before unicode strings; https://docs.djangoproject.com/en/1.8/topics/python3/#unicode-literals - also closed #66 Signed-off-by: Hiroshi Miura <miurahr@linux.com>
24 lines
1.2 KiB
Python
24 lines
1.2 KiB
Python
from __future__ import unicode_literals
|
|
from django.conf.urls import url, patterns
|
|
|
|
|
|
urlpatterns = patterns(
|
|
"symposion.schedule.views",
|
|
url(r"^$", "schedule_conference", name="schedule_conference"),
|
|
url(r"^edit/$", "schedule_edit", name="schedule_edit"),
|
|
url(r"^list/$", "schedule_list", name="schedule_list"),
|
|
url(r"^presentations.csv$", "schedule_list_csv", name="schedule_list_csv"),
|
|
url(r"^presentation/(\d+)/$", "schedule_presentation_detail",
|
|
name="schedule_presentation_detail"),
|
|
url(r"^([\w\-]+)/$", "schedule_detail", name="schedule_detail"),
|
|
url(r"^([\w\-]+)/edit/$", "schedule_edit", name="schedule_edit"),
|
|
url(r"^([\w\-]+)/list/$", "schedule_list", name="schedule_list"),
|
|
url(r"^([\w\-]+)/presentations.csv$", "schedule_list_csv",
|
|
name="schedule_list_csv"),
|
|
url(r"^([\w\-]+)/edit/slot/(\d+)/", "schedule_slot_edit",
|
|
name="schedule_slot_edit"),
|
|
url(r"^conference.json", "schedule_json", name="schedule_json"),
|
|
url(r"^sessions/staff.txt$", "session_staff_email", name="schedule_session_staff_email"),
|
|
url(r"^sessions/$", "session_list", name="schedule_session_list"),
|
|
url(r"^session/(\d+)/$", "session_detail", name="schedule_session_detail"),
|
|
)
|