Spaces:
Sleeping
Sleeping
Laurenc Kaefer commited on
Commit ·
72bfe98
1
Parent(s): da64e96
ADD: wsgi loading env
Browse files
wsgi.py
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
|
|
| 1 |
from backend.main import api
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
# single callable WSGI app
|
| 4 |
app = api
|
|
|
|
| 1 |
+
from dotenv import load_dotenv
|
| 2 |
from backend.main import api
|
| 3 |
|
| 4 |
+
# Load environment variables from .env file
|
| 5 |
+
load_dotenv()
|
| 6 |
+
|
| 7 |
# single callable WSGI app
|
| 8 |
app = api
|