Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-video-pipeline
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-video-pipeline
Commits
f7cb3e44
Commit
f7cb3e44
authored
Jul 05, 2017
by
Gregory Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
3141cbbe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
21 deletions
+21
-21
VEDA_OS01/views.py
+1
-1
common/django_secrets.py
+18
-18
control/celeryapp.py
+2
-2
No files found.
VEDA_OS01/views.py
View file @
f7cb3e44
...
...
@@ -118,4 +118,4 @@ def user_login(request):
if
__name__
==
"__main__"
:
course_view
()
pass
common/django_secrets.py
View file @
f7cb3e44
"""
edx-video-pipeline's Django Secrets
NEVER SHARE ANYTHING IN HERE, like, EVER
--assume unchanged in git--
"""
VEDA's Django Secrets Shim
import
os
This acts as a django-secret shimmer until we can finish pushing all changes to terraform/prod
DJANGO_SECRET_KEY
=
""
"""
import
os
import
yaml
DJANGO_DB_USER
=
""
DJANGO_DB_PASS
=
""
read_yaml
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))),
'instance_config.yaml'
)
DJANGO_ADMIN
=
(
''
,
''
)
with
open
(
read_yaml
,
'r'
)
as
stream
:
try
:
return_dict
=
yaml
.
load
(
stream
)
except
yaml
.
YAMLError
as
exc
:
return_dict
=
None
SANDBOX_TOKEN
=
None
if
SANDBOX_TOKEN
is
not
None
and
SANDBOX_TOKEN
in
os
.
path
.
dirname
(
__file__
):
DEBUG
=
True
DBHOST
=
''
pipeline_dbname
=
""
else
:
DEBUG
=
False
DBHOST
=
''
pipeline_dbname
=
""
DJANGO_SECRET_KEY
=
return_dict
[
'django_secret_key'
]
DJANGO_ADMIN
=
(
''
,
''
)
DEBUG
=
True
DATABASES
=
return_dict
[
'DATABASES'
]
control/celeryapp.py
View file @
f7cb3e44
...
...
@@ -20,8 +20,8 @@ except:
from
veda_deliver
import
VedaDelivery
auth_yaml
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
'
veda_auth
.yaml'
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)
)),
'
instance_config
.yaml'
)
with
open
(
auth_yaml
,
'r'
)
as
stream
:
try
:
...
...
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