Skip to content

Commit

Permalink
Fix stronzata
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMagos committed Nov 10, 2023
1 parent eb5803d commit f59d4b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'smartreport.settings')
os.environ.setdefault('DEBUG', "False" if f'{os.environ.get("DEBUG")}'.lower() == 'false' else "True")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
9 changes: 3 additions & 6 deletions smartreport/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@
BASE_DIR = Path(__file__).resolve().parent.parent


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "django-insecure-uji3*2a6x#!jcvjy9ogvgoo5h6jb=$au1w)1*u1yk!6$+z#obj"
os.environ.setdefault('DEBUG', "True")
os.environ.setdefault('SECRET_KEY', "django-insecure-uji3*2a6x#!jcvjy9ogvgoo5h6jb=$au1w)1*u1yk!6$+z#obj")


ALLOWED_HOSTS = [
Expand Down Expand Up @@ -95,7 +92,7 @@
# Database
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases

if os.environ.get("DEBUG"):
if os.environ.get("DEBUG").lower() == "true":
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
Expand Down

0 comments on commit f59d4b2

Please sign in to comment.