diff options
| author | Bobby <[email protected]> | 2022-07-20 19:38:10 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-07-20 19:38:10 +0530 |
| commit | 4b210c88bfa02b9d835f4e37c33ec88daab55dad (patch) | |
| tree | 6c719f45facf0a89374a988a82a4bef3c4bbd4dc | |
| parent | 9d6dfdb34ccca538d220e127724a2a792cd0e1b3 (diff) | |
| download | thatcomputerscientist-4b210c88bfa02b9d835f4e37c33ec88daab55dad.tar.xz thatcomputerscientist-4b210c88bfa02b9d835f4e37c33ec88daab55dad.zip | |
Making Migrations and Migrate + Setting Debug = False
| -rw-r--r-- | Dockerfile | 3 | ||||
| -rw-r--r-- | thatcomputerscientist/settings.py | 4 |
2 files changed, 4 insertions, 3 deletions
@@ -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/'] |
