Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-notes-api
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-notes-api
Commits
8c64c644
Commit
8c64c644
authored
Jan 06, 2015
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/ operator requires a path, fails on two string
parent
a6ec3170
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
notesserver/settings/yaml_config.py
+8
-2
requirements/base.txt
+1
-0
No files found.
notesserver/settings/yaml_config.py
View file @
8c64c644
import
yaml
import
yaml
from
.common
import
*
# pylint: disable=unused-wildcard-import, wildcard-import
from
.common
import
*
# pylint: disable=unused-wildcard-import, wildcard-import
from
path
import
path
from
django.core.exceptions
import
ImproperlyConfigured
###############################################################################
###############################################################################
# Explicitly declare here in case someone changes common.py.
# Explicitly declare here in case someone changes common.py.
...
@@ -11,7 +12,12 @@ TEMPLATE_DEBUG = False
...
@@ -11,7 +12,12 @@ TEMPLATE_DEBUG = False
DISABLE_TOKEN_CHECK
=
False
DISABLE_TOKEN_CHECK
=
False
###############################################################################
###############################################################################
CONFIG_ROOT
=
os
.
environ
.
get
(
'EDXNOTES_CONFIG_ROOT'
)
EDXNOTES_CONFIG_ROOT
=
os
.
environ
.
get
(
'EDXNOTES_CONFIG_ROOT'
)
if
not
EDXNOTES_CONFIG_ROOT
:
raise
ImproperlyConfigured
(
"EDXNOTES_CONFIG_ROOT must be defined in the environment."
)
CONFIG_ROOT
=
path
(
EDXNOTES_CONFIG_ROOT
)
with
open
(
CONFIG_ROOT
/
"edx-notes-api.yml"
)
as
yaml_file
:
with
open
(
CONFIG_ROOT
/
"edx-notes-api.yml"
)
as
yaml_file
:
config_from_yaml
=
yaml
.
load
(
yaml_file
)
config_from_yaml
=
yaml
.
load
(
yaml_file
)
...
...
requirements/base.txt
View file @
8c64c644
...
@@ -8,3 +8,4 @@ django-cors-headers==0.13
...
@@ -8,3 +8,4 @@ django-cors-headers==0.13
PyJWT==0.3.0
PyJWT==0.3.0
MySQL-python==1.2.5 # GPL License
MySQL-python==1.2.5 # GPL License
gunicorn==19.1.1 # MIT
gunicorn==19.1.1 # MIT
path.py==3.0.1
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