瀏覽代碼

Preparations for production

sleepytaco 3 年之前
父節點
當前提交
2a827574ab
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UnTube/production.py

+ 1 - 1
UnTube/production.py

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