Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
f0ac9cae
Commit
f0ac9cae
authored
13 years ago
by
David Ormsbee
Browse files
Options
Downloads
Patches
Plain Diff
remove some outdated comments
parent
4758ed10
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
settings2/common.py
+14
-18
14 additions, 18 deletions
settings2/common.py
with
14 additions
and
18 deletions
settings2/common.py
+
14
−
18
View file @
f0ac9cae
...
...
@@ -2,12 +2,12 @@
This is the common settings file, intended to set sane defaults. If you have a
piece of configuration that
'
s dependent on a set of feature flags being set,
then create a function that returns the calculated value based on the value of
MITX_FEATURES[...].
That class
es that extend this one can change the feature
MITX_FEATURES[...].
Modul
es that extend this one can change the feature
configuration in an environment specific config file and re-calculate those
values.
We should make a method that calls all these config methods so that you just
make one call at the end of your site-specific dev file
and i
t reset all the
make one call at the end of your site-specific dev file t
o
reset all the
dependent variables (like INSTALLED_APPS) for you.
TODO:
...
...
@@ -39,21 +39,21 @@ MITX_FEATURES = {
'
SAMPLE
'
:
False
}
# Used for A/B testing
DEFAULT_GROUPS
=
[]
# If this is true, random scores will be generated for the purpose of debugging the profile graphs
GENERATE_PROFILE_SCORES
=
False
############################# SET PATH INFORMATION #############################
PROJECT_ROOT
=
path
(
__file__
).
abspath
().
dirname
().
dirname
()
# /mitxweb
ENV_ROOT
=
PROJECT_ROOT
.
dirname
()
# virtualenv dir /mitxweb is in
#ASKBOT_ROOT = ENV_ROOT / "3rdparty" / "askbot-devel"
ASKBOT_ROOT
=
ENV_ROOT
/
"
askbot-devel
"
#COURSES_ROOT = ENV_ROOT / "courses"
COURSES_ROOT
=
ENV_ROOT
/
"
data
"
# FIXME: code shouldn't expect trailing "/"
# FIXME: To support multiple courses, we should walk the courses dir at startup
#DATA_DIR = COURSES_ROOT / "6002x" / ""
DATA_DIR
=
COURSES_ROOT
#print DATA_DIR, COURSES_ROOT, ASKBOT_ROOT, ENV_ROOT, PROJECT_ROOT
sys
.
path
.
append
(
ENV_ROOT
)
sys
.
path
.
append
(
ASKBOT_ROOT
)
sys
.
path
.
append
(
ASKBOT_ROOT
/
"
askbot
"
/
"
deps
"
)
...
...
@@ -65,10 +65,11 @@ sys.path.append(PROJECT_ROOT / 'lib')
MAKO_MODULE_DIR
=
tempfile
.
mkdtemp
(
'
mako
'
)
MAKO_TEMPLATES
=
{}
MAKO_TEMPLATES
[
'
course
'
]
=
[
DATA_DIR
]
MAKO_TEMPLATES
[
'
sections
'
]
=
[
DATA_DIR
+
'
/
sections
'
]
MAKO_TEMPLATES
[
'
custom_tags
'
]
=
[
DATA_DIR
+
'
/
custom_tags
'
]
MAKO_TEMPLATES
[
'
main
'
]
=
[
ENV_ROOT
+
'
/
templates/
'
]
MAKO_TEMPLATES
[
'
sections
'
]
=
[
DATA_DIR
/
'
sections
'
]
MAKO_TEMPLATES
[
'
custom_tags
'
]
=
[
DATA_DIR
/
'
custom_tags
'
]
MAKO_TEMPLATES
[
'
main
'
]
=
[
ENV_ROOT
/
'
templates/
'
]
# FIXME: We're not checking this out in this location yet
TEXTBOOK_DIR
=
ENV_ROOT
/
"
books
"
/
"
circuits_agarwal_lang
"
# FIXME ???????? --
...
...
@@ -87,9 +88,7 @@ STATIC_GRAB = False
DEV_CONTENT
=
True
# FIXME: Should we be doing this truncation?
TRACK_MAX_EVENT
=
1000
GENERATE_PROFILE_SCORES
=
False
TRACK_MAX_EVENT
=
5000
############################### DJANGO BUILT-INS ###############################
# Change DEBUG/TEMPLATE_DEBUG in your environment settings files, not here
...
...
@@ -101,7 +100,6 @@ SITE_ID = 1
SITE_NAME
=
"
localhost:8000
"
CSRF_COOKIE_DOMAIN
=
'
127.0.0.1
'
HTTPS
=
'
on
'
#ROOT_URLCONF = 'mitxweb.urls'
ROOT_URLCONF
=
'
mitx.urls
'
# Email
...
...
@@ -119,7 +117,7 @@ ADMIN_MEDIA_PREFIX = '/static/admin/'
STATIC_ROOT
=
ENV_ROOT
/
"
staticfiles
"
# FIXME: Should this and uploads be moved out of the repo?
# FIXME: We should iterate through the courses we have, adding the static
# contents for each of them.
# contents for each of them.
(Right now we just use symlinks.)
STATICFILES_DIRS
=
(
# FIXME: Need to add entries for book, data/images, etc.
# PROJECT_ROOT / "static",
...
...
@@ -131,8 +129,6 @@ STATICFILES_DIRS = (
# ("book", TEXTBOOK_DIR)
)
print
STATICFILES_DIRS
# Templates
TEMPLATE_DIRS
=
(
ENV_ROOT
/
"
templates
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment