Commit f7cb3e44 by Gregory Martin

debug

parent 3141cbbe
...@@ -118,4 +118,4 @@ def user_login(request): ...@@ -118,4 +118,4 @@ def user_login(request):
if __name__ == "__main__": if __name__ == "__main__":
course_view() pass
""" """
edx-video-pipeline's Django Secrets VEDA's Django Secrets Shim
NEVER SHARE ANYTHING IN HERE, like, EVER
--assume unchanged in git--
"""
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 = "" read_yaml = os.path.join(
DJANGO_DB_PASS = "" 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__): DJANGO_SECRET_KEY = return_dict['django_secret_key']
DEBUG = True DJANGO_ADMIN = ('', '')
DBHOST = '' DEBUG = True
pipeline_dbname = "" DATABASES = return_dict['DATABASES']
else:
DEBUG = False
DBHOST = ''
pipeline_dbname = ""
...@@ -20,8 +20,8 @@ except: ...@@ -20,8 +20,8 @@ except:
from veda_deliver import VedaDelivery from veda_deliver import VedaDelivery
auth_yaml = os.path.join( auth_yaml = os.path.join(
os.path.dirname(os.path.abspath(__file__)), os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
'veda_auth.yaml' 'instance_config.yaml'
) )
with open(auth_yaml, 'r') as stream: with open(auth_yaml, 'r') as stream:
try: 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