Skip to content

Commit 44a889e

Browse files
committed
dotenv is givin problems
1 parent e06a6b2 commit 44a889e

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM python:3.9
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
7+
RUN pip install --no-cache-dir -r requirements.txt
8+
9+
COPY . .
10+
11+
EXPOSE 8000
12+
13+
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]

mouseless/settings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
44
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
55

6-
from dotenv import load_dotenv
76

8-
load_dotenv()
97

108
client_id = os.getenv("CLIENT_ID")
119
client_secret = os.getenv("CLIENT_SECRET")

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ gunicorn==20.1.0
2121
idna==3.8
2222
importlib-metadata==4.12.0
2323
jwcrypto==1.5.6
24+
jwt==1.3.1
2425
Markdown==3.4.1
2526
oauthlib==3.2.2
2627
phonenumbers==8.12.54

0 commit comments

Comments
 (0)