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
c6c53be2
Commit
c6c53be2
authored
May 16, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate changes to settings.py to envs/*.py settings files
parent
1b8ea444
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
4 deletions
+33
-4
envs/common.py
+31
-2
envs/dev.py
+2
-2
No files found.
envs/common.py
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'
,
...
...
envs/dev.py
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"
,
...
...
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