|
|
|
|
@ -23,9 +23,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent |
|
|
|
|
SECRET_KEY = 'django-insecure-y6eq)a5r)((id1vtb_be!nco92vla2$#iwm^^opa7@x4(%o5mh' |
|
|
|
|
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production! |
|
|
|
|
DEBUG = True |
|
|
|
|
DEBUG = False |
|
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = [] |
|
|
|
|
ALLOWED_HOSTS = ['ssh-stax.alwaysdata.net', 'stax.alwaysdata.net/padel'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Application definition |
|
|
|
|
@ -76,8 +76,13 @@ WSGI_APPLICATION = 'padel.wsgi.application' |
|
|
|
|
|
|
|
|
|
DATABASES = { |
|
|
|
|
'default': { |
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3', |
|
|
|
|
'NAME': BASE_DIR / 'db.sqlite3', |
|
|
|
|
#'ENGINE': 'django.db.backends.sqlite3', |
|
|
|
|
#'NAME': BASE_DIR / 'db.sqlite3', |
|
|
|
|
'ENGINE': 'django.db.backends.postgresql', |
|
|
|
|
'NAME': 'stax_padel', |
|
|
|
|
'USER': 'stax', |
|
|
|
|
'PASSWORD': 'staxkikoo', |
|
|
|
|
'HOST': 'postgresql-stax.alwaysdata.net', |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -117,6 +122,7 @@ USE_TZ = True |
|
|
|
|
# https://docs.djangoproject.com/en/4.1/howto/static-files/ |
|
|
|
|
|
|
|
|
|
STATIC_URL = 'static/' |
|
|
|
|
STATIC_ROOT = os.path.join(BASE_DIR, 'padel/static/') |
|
|
|
|
|
|
|
|
|
# Default primary key field type |
|
|
|
|
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field |
|
|
|
|
|