diff --git a/padelclub_backend/settings.py b/padelclub_backend/settings.py index 8539b5a..803c384 100644 --- a/padelclub_backend/settings.py +++ b/padelclub_backend/settings.py @@ -81,15 +81,13 @@ WSGI_APPLICATION = 'padelclub_backend.wsgi.application' DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.postgresql', - 'NAME': 'stax_padelclub_pbl', - 'USER': 'stax', - 'PASSWORD': 'staxkikoo', - 'HOST': 'postgresql-stax.alwaysdata.net', + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', } } + # Password validation # https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators @@ -156,4 +154,4 @@ REST_FRAMEWORK = { ] } -from .settings_app import * +from .settings_local import * diff --git a/padelclub_backend/settings_local.py b/padelclub_backend/settings_local.py new file mode 100644 index 0000000..f3e6906 --- /dev/null +++ b/padelclub_backend/settings_local.py @@ -0,0 +1,17 @@ +from pathlib import Path + +BASE_DIR = Path(__file__).resolve().parent.parent + +SECRET_KEY = 'django-insecure-60*l@#e*-bc3o%#c#e3vikjcl$518bz2%xe3a3s3iudorq%dal' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = ['*'] + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} diff --git a/padelclub_backend/settings_local.py.dist b/padelclub_backend/settings_local.py.dist new file mode 100644 index 0000000..84a9fb0 --- /dev/null +++ b/padelclub_backend/settings_local.py.dist @@ -0,0 +1,17 @@ +from pathlib import Path + +BASE_DIR = Path(__file__).resolve().parent.parent + +SECRET_KEY = '' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +}