- Remove usage of django.urls.patterns - Change urls tuples to lists - Make all string view names callables - This is the third urls update for LMS
22 lines
712 B
Python
22 lines
712 B
Python
"""
|
|
URLs for the student support app.
|
|
"""
|
|
from django.conf.urls import url
|
|
|
|
from support import views
|
|
|
|
from lms.djangoapps.support.views.contact_us import ContactUsView
|
|
|
|
urlpatterns = [
|
|
url(r'^$', views.index, name="index"),
|
|
url(r'^certificates/?$', views.CertificatesSupportView.as_view(), name="certificates"),
|
|
url(r'^refund/?$', views.RefundSupportView.as_view(), name="refund"),
|
|
url(r'^enrollment/?$', views.EnrollmentSupportView.as_view(), name="enrollment"),
|
|
url(r'^contact_us/?$', ContactUsView.as_view(), name="contact_us"),
|
|
url(
|
|
r'^enrollment/(?P<username_or_email>[\w.@+-]+)?$',
|
|
views.EnrollmentSupportListView.as_view(),
|
|
name="enrollment_list"
|
|
),
|
|
]
|