Commit 973d26f4 by bmedx

Make autodiscover the same across CMS/LMS

parent 45d6f97e
from django.conf import settings
from django.conf.urls import include, patterns, url
from django.conf.urls.static import static
from django.contrib import admin as django_admin
from django.contrib.admin import autodiscover as django_autodiscover
from ratelimitbackend import admin
from cms.djangoapps.contentstore.views.organization import OrganizationListView
django_admin.autodiscover()
django_autodiscover()
# Pattern to match a course key or a library key
COURSELIKE_KEY_PATTERN = r'(?P<course_key_string>({}|{}))'.format(
r'[^/]+/[^/]+/[^/]+', r'[^/:]+:[^/+]+\+[^/+]+(\+[^/]+)?'
)
# Pattern to match a library key only
LIBRARY_KEY_PATTERN = r'(?P<library_key_string>library-v1:[^/+]+\+[^/+]+)'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment