|
@@ -11,14 +11,11 @@ import os
|
|
|
from dotenv import load_dotenv
|
|
|
from django.core.wsgi import get_wsgi_application
|
|
|
|
|
|
-# If WEBSITE_HOSTNAME is defined as an environment variable, then we're running
|
|
|
-# on Azure App Service and should use the production settings in production.py.
|
|
|
-# settings_module = "UnTube.production" if 'WEBSITE_HOSTNAME' in os.environ else 'UnTube.settings'
|
|
|
settings_module = "UnTube.production" if 'UNTUBE' in os.environ else 'UnTube.settings'
|
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', settings_module)
|
|
|
|
|
|
# to use env variables on pythonanywhere
|
|
|
-project_folder = os.path.expanduser('~')
|
|
|
+project_folder = os.path.expanduser('/home/bakaabu')
|
|
|
load_dotenv(os.path.join(project_folder, '.env'))
|
|
|
|
|
|
application = get_wsgi_application()
|