settings changes

stream
Laurent 2 years ago
parent 4ab8e79fb7
commit c57d23f05b
  1. 10
      padelclub_backend/settings.py
  2. 17
      padelclub_backend/settings_local.py
  3. 17
      padelclub_backend/settings_local.py.dist

@ -81,15 +81,13 @@ WSGI_APPLICATION = 'padelclub_backend.wsgi.application'
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.postgresql', 'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'stax_padelclub_pbl', 'NAME': BASE_DIR / 'db.sqlite3',
'USER': 'stax',
'PASSWORD': 'staxkikoo',
'HOST': 'postgresql-stax.alwaysdata.net',
} }
} }
# Password validation # Password validation
# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators # 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 *

@ -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',
}
}

@ -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',
}
}
Loading…
Cancel
Save