aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-07-20 19:38:10 +0530
committerBobby <[email protected]>2022-07-20 19:38:10 +0530
commit4b210c88bfa02b9d835f4e37c33ec88daab55dad (patch)
tree6c719f45facf0a89374a988a82a4bef3c4bbd4dc
parent9d6dfdb34ccca538d220e127724a2a792cd0e1b3 (diff)
downloadthatcomputerscientist-4b210c88bfa02b9d835f4e37c33ec88daab55dad.tar.xz
thatcomputerscientist-4b210c88bfa02b9d835f4e37c33ec88daab55dad.zip
Making Migrations and Migrate + Setting Debug = False
-rw-r--r--Dockerfile3
-rw-r--r--thatcomputerscientist/settings.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 3c91da9e..a6f5e7f0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -18,7 +18,8 @@ RUN pip install -r requirements.txt
COPY . .
RUN python manage.py collectstatic --noinput
-
+RUN python manage.py makemigrations
+RUN python manage.py migrate
EXPOSE 8080
diff --git a/thatcomputerscientist/settings.py b/thatcomputerscientist/settings.py
index aa7e0d3e..8aeff78f 100644
--- a/thatcomputerscientist/settings.py
+++ b/thatcomputerscientist/settings.py
@@ -27,8 +27,8 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = os.getenv('AUTHORIZATION_STRING')
# SECURITY WARNING: don't run with debug turned on in production!
-# DEBUG = os.getenv('ENVIRONMENT') == 'development' or False
-DEBUG = True
+DEBUG = os.getenv('ENVIRONMENT') == 'development' or False
+# DEBUG = True
ALLOWED_HOSTS = ["*"]
CSRF_TRUSTED_ORIGINS = ['https://*.thatcomputerscientist.com', 'https://*.thatcomputerscientist.fly.dev/']