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
98910a2d
Commit
98910a2d
authored
Jul 24, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address review comments
parent
66f79251
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
lms/djangoapps/courseware/courses.py
+2
-1
lms/envs/common.py
+3
-0
No files found.
lms/djangoapps/courseware/courses.py
View file @
98910a2d
...
...
@@ -36,7 +36,8 @@ def check_course(course_id, course_must_be_open=True, course_required=True):
except
(
KeyError
,
ItemNotFoundError
):
raise
Http404
(
"Course not found."
)
if
course_must_be_open
and
not
(
course
.
has_started
()
or
settings
.
MITX_FEATURES
[
'DISABLE_START_DATES'
]):
started
=
course
.
has_started
()
or
settings
.
MITX_FEATURES
[
'DISABLE_START_DATES'
]
if
course_must_be_open
and
not
started
:
raise
Http404
(
"This course has not yet started."
)
return
course
...
...
lms/envs/common.py
View file @
98910a2d
...
...
@@ -41,6 +41,9 @@ MITX_FEATURES = {
'DISPLAY_HISTOGRAMS_TO_STAFF'
:
True
,
'REROUTE_ACTIVATION_EMAIL'
:
False
,
# nonempty string = address for all activation emails
'DEBUG_LEVEL'
:
0
,
# 0 = lowest level, least verbose, 255 = max level, most verbose
## DO NOT SET TO True IN THIS FILE
## Doing so will cause all courses to be released on production
'DISABLE_START_DATES'
:
False
,
# When True, all courses will be active, regardless of start date
}
...
...
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