We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58c8015 commit 52a6babCopy full SHA for 52a6bab
frontend/__pycache__/settings.cpython-312.pyc
59 Bytes
frontend/settings.py
@@ -13,6 +13,10 @@
13
from pathlib import Path
14
import os
15
16
+from dotenv import load_dotenv
17
+
18
+load_dotenv()
19
20
SECRET = os.getenv("SECRET_KEY")
21
22
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -28,7 +32,8 @@
28
32
29
33
ALLOWED_HOSTS = [
30
34
"python-speedtest.azurewebsites.net",
31
- "http://0.0.0.0:8000",
35
+ "0.0.0.0:8000",
36
+ "127.0.0.1:8000"
37
]
38
39
# Application definition
main.py
@@ -1,11 +1,15 @@
1
+import os
2
3
4
5
6
7
# config data
8
DB_USERNAME = os.getenv("USER_NAME")
9
DB_PASSWORD = os.getenv("USER_PASSWORD")
10
-
11
# import dependencies
12
import speedtest
-import os
import pymongo
import datetime
import certifi
0 commit comments