ソースを参照

Updated production credentials

sleepytaco 3 年 前
コミット
3876094760
2 ファイル変更5 行追加5 行削除
  1. 2 1
      UnTube/production.py
  2. 3 4
      UnTube/secrets.py

+ 2 - 1
UnTube/production.py

@@ -1,7 +1,8 @@
 from .settings import *
 import os
 
-SECRET_KEY = SECRETS['SECRET_KEY']
+SECRET_KEY = os.environ['SECRET_KEY']
+YOUTUBE_V3_API_KEY = os.environ['YOUTUBE_V3_API_KEY']
 
 # configure the domain name using the environment variable found on pythonanywhere
 ALLOWED_HOSTS = ['bakaabu.pythonanywhere.com', '127.0.0.1', 'untube.it'] if 'UNTUBE' in os.environ else ['bakaabu.pythonanywhere.com', 'untube.it']

+ 3 - 4
UnTube/secrets.py

@@ -1,7 +1,6 @@
-# Make sure you change these before production ;)
+# Make sure you change these before production or to run this project on your own machine ;)
 SECRETS = {"SECRET_KEY": 'django-insecure-ycs22y+20sq67y(6dm6ynqw=dlhg!)%vuqpd@$p6rf3!#1h$u=',
            "YOUTUBE_V3_API_KEY": 'AIzaSyCBOucAIJ5PdLeqzTfkTQ_6twsjNaMecS8',
-                    "GOOGLE_OAUTH_CLIENT_ID": "901333803283-1lscbdmukcjj3qp0t3relmla63h6l9k6.apps.googleusercontent.com",
+           "GOOGLE_OAUTH_CLIENT_ID": "901333803283-1lscbdmukcjj3qp0t3relmla63h6l9k6.apps.googleusercontent.com",
            "GOOGLE_OAUTH_CLIENT_SECRET": "ekdBniL-_mAnNPwCmugfIL2q",
-           "GOOGLE_OAUTH_SCOPES": ['https://www.googleapis.com/auth/youtube'],
-           "UNSPLASH_API_ACCESS_KEY": "fGf0hsfg24Hj1mUrwvtETl1Dl2-TvaMP3w1moGEb1hs"}
+           "GOOGLE_OAUTH_SCOPES": ['https://www.googleapis.com/auth/youtube']}