diff --git a/.gitea/workflows/unit-tests.yaml b/.gitea/workflows/unit-tests.yaml index 758f446..8c6e35b 100644 --- a/.gitea/workflows/unit-tests.yaml +++ b/.gitea/workflows/unit-tests.yaml @@ -22,6 +22,7 @@ jobs: - name: Run unit tests env: DJANGO_SECRET_KEY: 'u92=rjf!))-h!1l9z%4i2xwk^t6%l+$z!$a%1_5zba4_9=ypj1' + DJANGO_DEBUG: True working-directory: src run: python3 manage.py test diff --git a/src/config/settings.py b/src/config/settings.py index ecc43ae..9b42d5a 100644 --- a/src/config/settings.py +++ b/src/config/settings.py @@ -21,7 +21,8 @@ DEBUG = env.bool("DJANGO_DEBUG", default=False) print('Debug mode ENABLED. Disable this before going into production') if DEBUG else None ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", - default="localhost,127.0.0.1,0.0.0.0") + default=["localhost","127.0.0.1"]) +print('ALLOWED_HOSTS is set to %s' % ','.join(ALLOWED_HOSTS)) if DEBUG else None INSTALLED_APPS = [ "django.contrib.admin",