From 4b210c88bfa02b9d835f4e37c33ec88daab55dad Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 20 Jul 2022 19:38:10 +0530 Subject: Making Migrations and Migrate + Setting Debug = False --- Dockerfile | 3 ++- thatcomputerscientist/settings.py | 4 ++-- 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/'] -- cgit v1.2.3