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
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
c6c53be2
Commit
c6c53be2
authored
12 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Migrate changes to settings.py to envs/*.py settings files
parent
1b8ea444
No related branches found
Branches containing commit
Tags
release-2019-11-04-10.15
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
envs/common.py
+31
-2
31 additions, 2 deletions
envs/common.py
envs/dev.py
+2
-2
2 additions, 2 deletions
envs/dev.py
with
33 additions
and
4 deletions
envs/common.py
+
31
−
2
View file @
c6c53be2
...
...
@@ -80,6 +80,7 @@ TEMPLATE_DIRS = (
TEMPLATE_CONTEXT_PROCESSORS
=
(
'
django.core.context_processors.request
'
,
'
django.core.context_processors.static
'
,
'
askbot.context.application_settings
'
,
'
django.contrib.messages.context_processors.messages
'
,
#'django.core.context_processors.i18n',
...
...
@@ -106,6 +107,20 @@ DEV_CONTENT = True
TRACK_MAX_EVENT
=
10000
DEBUG_TRACK_LOG
=
False
MITX_ROOT_URL
=
''
COURSE_NAME
=
"
6.002_Spring_2012
"
COURSE_NUMBER
=
"
6.002x
"
COURSE_TITLE
=
"
Circuits and Electronics
"
ROOT_URLCONF
=
'
urls
'
### Dark code. Should be enabled in local settings for devel.
ENABLE_MULTICOURSE
=
False
# set to False to disable multicourse display (see lib.util.views.mitxhome)
###
############################### DJANGO BUILT-INS ###############################
# Change DEBUG/TEMPLATE_DEBUG in your environment settings files, not here
DEBUG
=
False
...
...
@@ -160,14 +175,22 @@ MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage'
AWS_QUERYSTRING_EXPIRE
=
10
*
365
*
24
*
60
*
60
# 10 years
################################### ASKBOT #####################################
LIVESETTINGS_OPTIONS
[
'
MITX_ROOT_URL
'
]
=
MITX_ROOT_URL
skin_settings
=
LIVESETTINGS_OPTIONS
[
1
][
'
SETTINGS
'
][
'
GENERAL_SKIN_SETTINGS
'
]
skin_settings
[
'
SITE_FAVICON
'
]
=
unicode
(
MITX_ROOT_URL
)
+
skin_settings
[
'
SITE_FAVICON
'
]
skin_settings
[
'
SITE_LOGO_URL
'
]
=
unicode
(
MITX_ROOT_URL
)
+
skin_settings
[
'
SITE_LOGO_URL
'
]
skin_settings
[
'
LOCAL_LOGIN_ICON
'
]
=
unicode
(
MITX_ROOT_URL
)
+
skin_settings
[
'
LOCAL_LOGIN_ICON
'
]
LIVESETTINGS_OPTIONS
[
1
][
'
SETTINGS
'
][
'
LOGIN_PROVIDERS
'
][
'
WORDPRESS_SITE_ICON
'
]
=
unicode
(
MITX_ROOT_URL
)
+
LIVESETTINGS_OPTIONS
[
1
][
'
SETTINGS
'
][
'
LOGIN_PROVIDERS
'
][
'
WORDPRESS_SITE_ICON
'
]
LIVESETTINGS_OPTIONS
[
1
][
'
SETTINGS
'
][
'
LICENSE_SETTINGS
'
][
'
LICENSE_LOGO_URL
'
]
=
unicode
(
MITX_ROOT_URL
)
+
LIVESETTINGS_OPTIONS
[
1
][
'
SETTINGS
'
][
'
LICENSE_SETTINGS
'
][
'
LICENSE_LOGO_URL
'
]
ASKBOT_EXTRA_SKINS_DIR
=
ASKBOT_ROOT
/
"
askbot
"
/
"
skins
"
ASKBOT_ALLOWED_UPLOAD_FILE_TYPES
=
(
'
.jpg
'
,
'
.jpeg
'
,
'
.gif
'
,
'
.bmp
'
,
'
.png
'
,
'
.tiff
'
)
ASKBOT_MAX_UPLOAD_FILE_SIZE
=
1024
*
1024
# result in bytes
CACHE_MIDDLEWARE_ANONYMOUS_ONLY
=
True
ASKBOT_URL
=
'
discussion/
'
LOGIN_REDIRECT_URL
=
'
/
'
LOGIN_URL
=
'
/
'
LOGIN_REDIRECT_URL
=
MITX_ROOT_URL
+
'
/
'
LOGIN_URL
=
MITX_ROOT_URL
+
'
/
'
ALLOW_UNICODE_SLUGS
=
False
ASKBOT_USE_STACKEXCHANGE_URLS
=
False
# mimic url scheme of stackexchange
...
...
@@ -182,6 +205,9 @@ djcelery.setup_loader()
SIMPLE_WIKI_REQUIRE_LOGIN_EDIT
=
True
SIMPLE_WIKI_REQUIRE_LOGIN_VIEW
=
False
################################# Jasmine ###################################
JASMINE_TEST_DIRECTORY
=
PROJECT_ROOT
+
'
/templates/coffee
'
################################# Middleware ###################################
# List of finder classes that know how to find static files in
# various locations.
...
...
@@ -246,6 +272,9 @@ INSTALLED_APPS = (
'
track
'
,
'
util
'
,
# For testing
'
django_jasmine
'
,
# For Askbot
'
django.contrib.sitemaps
'
,
'
django.contrib.admin
'
,
...
...
This diff is collapsed.
Click to expand it.
envs/dev.py
+
2
−
2
View file @
c6c53be2
...
...
@@ -9,8 +9,8 @@ sessions. Assumes structure:
"""
from
common
import
*
DEBUG
=
Tru
e
TEMPLATE_DEBUG
=
Tru
e
DEBUG
=
Fals
e
TEMPLATE_DEBUG
=
Fals
e
LOGGING
=
logsettings
.
get_logger_config
(
ENV_ROOT
/
"
log
"
,
logging_env
=
"
dev
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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