Commit f7cb3e44 by Gregory Martin

debug

parent 3141cbbe
......@@ -118,4 +118,4 @@ def user_login(request):
if __name__ == "__main__":
course_view()
pass
"""
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']
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment