diff options
| -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/'] |
