Skip to content

Commit

Permalink
modified settings
Browse files Browse the repository at this point in the history
  • Loading branch information
doridoro committed Jun 3, 2024
1 parent a1d7604 commit 08d10e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions oc_lettings_site/settings-ci.py
Original file line number Diff line number Diff line change
@@ -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 = ["*"]
9 changes: 1 addition & 8 deletions oc_lettings_site/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down Expand Up @@ -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

0 comments on commit 08d10e3

Please sign in to comment.