diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index e9456b0..4497030 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -31,7 +31,7 @@ jobs: DEBUG: ${{ secrets.DEBUG }} SENTRY_DSN: ${{ secrets.SENTRY_DSN }} run: | - coverage run --source='.' --omit='*/migrations/*' manage.py test + coverage run --source='.' --omit='*/migrations/*' manage.py test --settings oc_lettings_site.settings-ci coverage report docker: diff --git a/oc_lettings_site/settings-ci.py b/oc_lettings_site/settings-ci.py new file mode 100644 index 0000000..71a38f4 --- /dev/null +++ b/oc_lettings_site/settings-ci.py @@ -0,0 +1,6 @@ +from oc_lettings_site.settings import * # noqa + +SECRET_KEY = "top-secret" +STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage" +DEBUG = True +ALLOWED_HOSTS = ["*"] diff --git a/oc_lettings_site/settings.py b/oc_lettings_site/settings.py index 3045677..4a0761b 100644 --- a/oc_lettings_site/settings.py +++ b/oc_lettings_site/settings.py @@ -15,9 +15,7 @@ SECRET_KEY = os.environ.get("SECRET_KEY") # SECURITY WARNING: don't run with debug turned on in production! -# DEBUG = os.environ.get("DEBUG", "False") -DEBUG = os.environ.get("DEBUG", "False").lower() in ["true", "1", "t", "yes", "y"] -# DEBUG = 'RENDER' not in os.environ +DEBUG = False # set an empty list as default ALLOWED_HOSTS = ( @@ -144,8 +142,3 @@ # We recommend adjusting this value in production. profiles_sample_rate=1.0, ) - -try: - from oc_lettings_site.settings_local import * # noqa -except ImportError: - pass