Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
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
ecommerce
Commits
696d5606
Commit
696d5606
authored
Oct 30, 2017
by
McKenzie Welter
Committed by
McKenzie Welter
Oct 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use codecs.open for python 2.x compatability
parent
bec2e16f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
ecommerce/settings/production.py
+2
-1
No files found.
ecommerce/settings/production.py
View file @
696d5606
"""Production settings and globals."""
"""Production settings and globals."""
import
codecs
from
os
import
environ
from
os
import
environ
from
urlparse
import
urljoin
from
urlparse
import
urljoin
...
@@ -46,7 +47,7 @@ ALLOWED_HOSTS = ['*']
...
@@ -46,7 +47,7 @@ ALLOWED_HOSTS = ['*']
DICT_UPDATE_KEYS
=
(
'JWT_AUTH'
,)
DICT_UPDATE_KEYS
=
(
'JWT_AUTH'
,)
CONFIG_FILE
=
get_env_setting
(
'ECOMMERCE_CFG'
)
CONFIG_FILE
=
get_env_setting
(
'ECOMMERCE_CFG'
)
with
open
(
CONFIG_FILE
,
encoding
=
'utf-8'
)
as
f
:
with
codecs
.
open
(
CONFIG_FILE
,
encoding
=
'utf-8'
)
as
f
:
config_from_yaml
=
yaml
.
load
(
f
)
config_from_yaml
=
yaml
.
load
(
f
)
# Remove the items that should be used to update dicts, and apply them separately rather
# Remove the items that should be used to update dicts, and apply them separately rather
...
...
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