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
b6970d9a
Commit
b6970d9a
authored
Apr 15, 2015
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put CCX URLs behind their feature flag
- Moved the CCX URLS into their django app.
parent
04ca163f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
20 deletions
+40
-20
lms/djangoapps/ccx/urls.py
+29
-0
lms/envs/test.py
+1
-0
lms/urls.py
+10
-20
No files found.
lms/djangoapps/ccx/urls.py
0 → 100644
View file @
b6970d9a
"""
URLs for the CCX Feature.
"""
from
django.conf.urls
import
patterns
,
url
urlpatterns
=
patterns
(
''
,
url
(
r'^ccx_coach$'
,
'ccx.views.dashboard'
,
name
=
'ccx_coach_dashboard'
),
url
(
r'^create_ccx$'
,
'ccx.views.create_ccx'
,
name
=
'create_ccx'
),
url
(
r'^save_ccx$'
,
'ccx.views.save_ccx'
,
name
=
'save_ccx'
),
url
(
r'^ccx_invite$'
,
'ccx.views.ccx_invite'
,
name
=
'ccx_invite'
),
url
(
r'^ccx_schedule$'
,
'ccx.views.ccx_schedule'
,
name
=
'ccx_schedule'
),
url
(
r'^ccx_manage_student$'
,
'ccx.views.ccx_student_management'
,
name
=
'ccx_manage_student'
),
url
(
r'^ccx_gradebook$'
,
'ccx.views.ccx_gradebook'
,
name
=
'ccx_gradebook'
),
url
(
r'^ccx_grades.csv$'
,
'ccx.views.ccx_grades_csv'
,
name
=
'ccx_grades_csv'
),
url
(
r'^ccx_set_grading_policy$'
,
'ccx.views.set_grading_policy'
,
name
=
'ccx_set_grading_policy'
),
url
(
r'^switch_ccx(?:/(?P<ccx_id>[\d]+))?$'
,
'ccx.views.switch_active_ccx'
,
name
=
'switch_active_ccx'
),
)
lms/envs/test.py
View file @
b6970d9a
...
@@ -472,3 +472,4 @@ FEATURES['CERTIFICATES_HTML_VIEW'] = True
...
@@ -472,3 +472,4 @@ FEATURES['CERTIFICATES_HTML_VIEW'] = True
######### custom courses #########
######### custom courses #########
INSTALLED_APPS
+=
(
'ccx'
,)
INSTALLED_APPS
+=
(
'ccx'
,)
MIDDLEWARE_CLASSES
+=
(
'ccx.overrides.CcxMiddleware'
,)
MIDDLEWARE_CLASSES
+=
(
'ccx.overrides.CcxMiddleware'
,)
FEATURES
[
'CUSTOM_COURSES_EDX'
]
=
True
lms/urls.py
View file @
b6970d9a
...
@@ -343,26 +343,8 @@ if settings.COURSEWARE_ENABLED:
...
@@ -343,26 +343,8 @@ if settings.COURSEWARE_ENABLED:
# For the instructor
# For the instructor
url
(
r'^courses/{}/instructor$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
url
(
r'^courses/{}/instructor$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'instructor.views.instructor_dashboard.instructor_dashboard_2'
,
name
=
"instructor_dashboard"
),
'instructor.views.instructor_dashboard.instructor_dashboard_2'
,
name
=
"instructor_dashboard"
),
url
(
r'^courses/{}/ccx_coach$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'ccx.views.dashboard'
,
name
=
'ccx_coach_dashboard'
),
url
(
r'^courses/{}/create_ccx$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'ccx.views.create_ccx'
,
name
=
'create_ccx'
),
url
(
r'^courses/{}/save_ccx$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'ccx.views.save_ccx'
,
name
=
'save_ccx'
),
url
(
r'^courses/{}/ccx_invite$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'ccx.views.ccx_invite'
,
name
=
'ccx_invite'
),
url
(
r'^courses/{}/ccx_schedule$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'ccx.views.ccx_schedule'
,
name
=
'ccx_schedule'
),
url
(
r'^courses/{}/ccx_manage_student$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'ccx.views.ccx_student_management'
,
name
=
'ccx_manage_student'
),
url
(
r'^courses/{}/ccx_gradebook$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'ccx.views.ccx_gradebook'
,
name
=
'ccx_gradebook'
),
url
(
r'^courses/{}/ccx_grades.csv$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'ccx.views.ccx_grades_csv'
,
name
=
'ccx_grades_csv'
),
url
(
r'^courses/{}/ccx_set_grading_policy$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'ccx.views.set_grading_policy'
,
name
=
'ccx_set_grading_policy'
),
url
(
r'^courses/{}/switch_ccx(?:/(?P<ccx_id>[\d]+))?$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'ccx.views.switch_active_ccx'
,
name
=
'switch_active_ccx'
),
url
(
r'^courses/{}/set_course_mode_price$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
url
(
r'^courses/{}/set_course_mode_price$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'instructor.views.instructor_dashboard.set_course_mode_price'
,
name
=
"set_course_mode_price"
),
'instructor.views.instructor_dashboard.set_course_mode_price'
,
name
=
"set_course_mode_price"
),
url
(
r'^courses/{}/instructor/api/'
.
format
(
settings
.
COURSE_ID_PATTERN
),
url
(
r'^courses/{}/instructor/api/'
.
format
(
settings
.
COURSE_ID_PATTERN
),
...
@@ -643,6 +625,14 @@ urlpatterns += (
...
@@ -643,6 +625,14 @@ urlpatterns += (
url
(
r'^xdomain_proxy.html$'
,
'cors_csrf.views.xdomain_proxy'
,
name
=
'xdomain_proxy'
),
url
(
r'^xdomain_proxy.html$'
,
'cors_csrf.views.xdomain_proxy'
,
name
=
'xdomain_proxy'
),
)
)
# Custom courses on edX (CCX) URLs
if
settings
.
FEATURES
[
"CUSTOM_COURSES_EDX"
]:
urlpatterns
+=
(
url
(
r'^courses/{}/'
.
format
(
settings
.
COURSE_ID_PATTERN
),
include
(
'ccx.urls'
)),
)
urlpatterns
=
patterns
(
*
urlpatterns
)
urlpatterns
=
patterns
(
*
urlpatterns
)
if
settings
.
DEBUG
:
if
settings
.
DEBUG
:
...
...
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