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
c22d0de9
Commit
c22d0de9
authored
Nov 20, 2015
by
Usman Khalid
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10690 from edx/usman/fix-settings
Cleanup some settings.
parents
d7953bfa
dc7b57f4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
cms/envs/aws.py
+2
-0
cms/envs/common.py
+1
-1
lms/envs/aws.py
+3
-5
lms/envs/common.py
+1
-1
lms/envs/test_with_mysql.py
+1
-1
No files found.
cms/envs/aws.py
View file @
c22d0de9
...
...
@@ -269,6 +269,8 @@ else:
DATABASES
=
AUTH_TOKENS
[
'DATABASES'
]
# Enable automatic transaction management on all databases
# https://docs.djangoproject.com/en/1.8/topics/db/transactions/#tying-transactions-to-http-requests
# This needs to be true for all databases
for
database_name
in
DATABASES
:
DATABASES
[
database_name
][
'ATOMIC_REQUESTS'
]
=
True
...
...
cms/envs/common.py
View file @
c22d0de9
...
...
@@ -62,7 +62,7 @@ from xmodule.mixin import LicenseMixin
# Dummy secret key for dev/test
SECRET_KEY
=
'
85920908f28904ed733fe576320db18cabd7b6cd
'
SECRET_KEY
=
'
dev key
'
STUDIO_NAME
=
"Studio"
STUDIO_SHORT_NAME
=
"Studio"
...
...
lms/envs/aws.py
View file @
c22d0de9
...
...
@@ -165,7 +165,7 @@ REGISTRATION_EXTRA_FIELDS = ENV_TOKENS.get('REGISTRATION_EXTRA_FIELDS', REGISTRA
EDXMKTG_LOGGED_IN_COOKIE_NAME
=
ENV_TOKENS
.
get
(
'EDXMKTG_LOGGED_IN_COOKIE_NAME'
,
EDXMKTG_LOGGED_IN_COOKIE_NAME
)
EDXMKTG_USER_INFO_COOKIE_NAME
=
ENV_TOKENS
.
get
(
'EDXMKTG_USER_INFO_COOKIE_NAME'
,
EDXMKTG_USER_INFO_COOKIE_NAME
)
ENV_FEATURES
=
ENV_TOKENS
.
get
(
'FEATURES'
,
ENV_TOKENS
.
get
(
'MITX_FEATURES'
,
{})
)
ENV_FEATURES
=
ENV_TOKENS
.
get
(
'FEATURES'
,
{}
)
for
feature
,
value
in
ENV_FEATURES
.
items
():
FEATURES
[
feature
]
=
value
...
...
@@ -259,10 +259,6 @@ USE_I18N = ENV_TOKENS.get('USE_I18N', USE_I18N)
for
app
in
ENV_TOKENS
.
get
(
'ADDL_INSTALLED_APPS'
,
[]):
INSTALLED_APPS
+=
(
app
,)
ENV_FEATURES
=
ENV_TOKENS
.
get
(
'FEATURES'
,
{})
for
feature
,
value
in
ENV_FEATURES
.
items
():
FEATURES
[
feature
]
=
value
WIKI_ENABLED
=
ENV_TOKENS
.
get
(
'WIKI_ENABLED'
,
WIKI_ENABLED
)
local_loglevel
=
ENV_TOKENS
.
get
(
'LOCAL_LOGLEVEL'
,
'INFO'
)
...
...
@@ -438,6 +434,8 @@ FILE_UPLOAD_STORAGE_PREFIX = ENV_TOKENS.get('FILE_UPLOAD_STORAGE_PREFIX', FILE_U
DATABASES
=
AUTH_TOKENS
[
'DATABASES'
]
# Enable automatic transaction management on all databases
# https://docs.djangoproject.com/en/1.8/topics/db/transactions/#tying-transactions-to-http-requests
# This needs to be true for all databases
for
database_name
in
DATABASES
:
DATABASES
[
database_name
][
'ATOMIC_REQUESTS'
]
=
True
...
...
lms/envs/common.py
View file @
c22d0de9
...
...
@@ -2676,7 +2676,7 @@ CREDIT_TASK_DEFAULT_RETRY_DELAY = 30
CREDIT_TASK_MAX_RETRIES
=
5
# Dummy secret key for dev/test
SECRET_KEY
=
'
85920908f28904ed733fe576320db18cabd7b6cd
'
SECRET_KEY
=
'
dev key
'
# Secret keys shared with credit providers.
# Used to digitally sign credit requests (us --> provider)
...
...
lms/envs/test_with_mysql.py
View file @
c22d0de9
...
...
@@ -5,7 +5,7 @@ from .test import * # pylint: disable=wildcard-import
from
.aws
import
*
# pylint: disable=wildcard-import
# Dummy secret key for dev
SECRET_KEY
=
'
85920908f28904ed733fe576320db18cabd7b6cd
'
SECRET_KEY
=
'
dev key
'
INSTALLED_APPS
=
(
'django.contrib.auth'
,
...
...
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