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
a8cff546
Commit
a8cff546
authored
May 17, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up the envs/* files so that they will work with gunicorn_django
parent
47f502d8
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
24 deletions
+27
-24
envs/aws.py
+6
-5
envs/common.py
+1
-2
envs/content.py
+1
-1
envs/dev.py
+6
-5
envs/devplus.py
+1
-1
envs/static.py
+6
-5
envs/test.py
+6
-5
No files found.
envs/aws.py
View file @
a8cff546
...
...
@@ -8,7 +8,8 @@ Common traits:
"""
import
json
from
common
import
*
from
envs.logsettings
import
get_logger_config
from
envs.common
import
*
############################### ALWAYS THE SAME ################################
DEBUG
=
False
...
...
@@ -31,10 +32,10 @@ LOG_DIR = ENV_TOKENS['LOG_DIR']
CACHES
=
ENV_TOKENS
[
'CACHES'
]
LOGGING
=
logsettings
.
get_logger_config
(
LOG_DIR
,
logging_env
=
ENV_TOKENS
[
'LOGGING_ENV'
],
syslog_addr
=
(
ENV_TOKENS
[
'SYSLOG_SERVER'
],
514
),
debug
=
False
)
LOGGING
=
get_logger_config
(
LOG_DIR
,
logging_env
=
ENV_TOKENS
[
'LOGGING_ENV'
],
syslog_addr
=
(
ENV_TOKENS
[
'SYSLOG_SERVER'
],
514
),
debug
=
False
)
############################## SECURE AUTH ITEMS ###############################
# Secret things: passwords, access keys, etc.
...
...
envs/common.py
View file @
a8cff546
...
...
@@ -24,8 +24,7 @@ import tempfile
import
djcelery
from
path
import
path
from
askbotsettings
import
*
# this is where LIVESETTINGS_OPTIONS comes from
import
logsettings
from
envs.askbotsettings
import
*
# this is where LIVESETTINGS_OPTIONS comes from
################################### FEATURES ###################################
COURSEWARE_ENABLED
=
True
...
...
envs/content.py
View file @
a8cff546
...
...
@@ -2,7 +2,7 @@
These are debug machines used for content creators, so they're kind of a cross
between dev machines and AWS machines.
"""
from
aws
import
*
from
envs.
aws
import
*
DEBUG
=
True
TEMPLATE_DEBUG
=
True
...
...
envs/dev.py
View file @
a8cff546
...
...
@@ -7,15 +7,16 @@ sessions. Assumes structure:
/mitx # The location of this repo
/log # Where we're going to write log files
"""
from
common
import
*
from
envs.common
import
*
from
envs.logsettings
import
get_logger_config
DEBUG
=
True
TEMPLATE_DEBUG
=
True
LOGGING
=
logsettings
.
get_logger_config
(
ENV_ROOT
/
"log"
,
logging_env
=
"dev"
,
tracking_filename
=
"tracking.log"
,
debug
=
True
)
LOGGING
=
get_logger_config
(
ENV_ROOT
/
"log"
,
logging_env
=
"dev"
,
tracking_filename
=
"tracking.log"
,
debug
=
True
)
DATABASES
=
{
'default'
:
{
...
...
envs/devplus.py
View file @
a8cff546
...
...
@@ -13,7 +13,7 @@ Dir structure:
/log # Where we're going to write log files
"""
from
dev
import
*
from
envs.
dev
import
*
DATABASES
=
{
'default'
:
{
...
...
envs/static.py
View file @
a8cff546
...
...
@@ -7,14 +7,15 @@ sessions. Assumes structure:
/mitx # The location of this repo
/log # Where we're going to write log files
"""
from
common
import
*
from
envs.common
import
*
from
envs.logsettings
import
get_logger_config
STATIC_GRAB
=
True
LOGGING
=
logsettings
.
get_logger_config
(
ENV_ROOT
/
"log"
,
logging_env
=
"dev"
,
tracking_filename
=
"tracking.log"
,
debug
=
False
)
LOGGING
=
get_logger_config
(
ENV_ROOT
/
"log"
,
logging_env
=
"dev"
,
tracking_filename
=
"tracking.log"
,
debug
=
False
)
DATABASES
=
{
'default'
:
{
...
...
envs/test.py
View file @
a8cff546
...
...
@@ -7,7 +7,8 @@ sessions. Assumes structure:
/mitx # The location of this repo
/log # Where we're going to write log files
"""
from
common
import
*
from
envs.common
import
*
from
envs.logsettings
import
get_logger_config
import
os
INSTALLED_APPS
=
[
...
...
@@ -35,10 +36,10 @@ MAKO_TEMPLATES['main'] = [PROJECT_ROOT / 'templates',
DATA_DIR
/
'info'
,
DATA_DIR
/
'problems'
]
LOGGING
=
logsettings
.
get_logger_config
(
TEST_ROOT
/
"log"
,
logging_env
=
"dev"
,
tracking_filename
=
"tracking.log"
,
debug
=
True
)
LOGGING
=
get_logger_config
(
TEST_ROOT
/
"log"
,
logging_env
=
"dev"
,
tracking_filename
=
"tracking.log"
,
debug
=
True
)
DATABASES
=
{
'default'
:
{
...
...
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