Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
973d26f4
Commit
973d26f4
authored
Aug 08, 2017
by
bmedx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make autodiscover the same across CMS/LMS
parent
45d6f97e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cms/urls.py
+3
-2
No files found.
cms/urls.py
View file @
973d26f4
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_a
dmin
.
a
utodiscover
()
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:[^/+]+\+[^/+]+)'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment