This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
31 lines
704 B
Python
31 lines
704 B
Python
"""
|
|
Certificates API v0 URLs.
|
|
"""
|
|
|
|
|
|
from django.conf import settings
|
|
from django.conf.urls import include, url
|
|
|
|
from lms.djangoapps.certificates.apis.v0 import views
|
|
|
|
CERTIFICATES_URLS = ([
|
|
url(
|
|
r'^{username}/courses/{course_id}/$'.format(
|
|
username=settings.USERNAME_PATTERN,
|
|
course_id=settings.COURSE_ID_PATTERN
|
|
),
|
|
views.CertificatesDetailView.as_view(), name='detail'
|
|
),
|
|
url(
|
|
r'^{username}/$'.format(
|
|
username=settings.USERNAME_PATTERN
|
|
),
|
|
views.CertificatesListView.as_view(), name='list'
|
|
),
|
|
], 'certificates')
|
|
|
|
app_name = 'v0'
|
|
urlpatterns = [
|
|
url(r'^certificates/', include(CERTIFICATES_URLS)),
|
|
]
|