|
|
|
|
@ -11,7 +11,6 @@ https://docs.djangoproject.com/en/4.1/ref/settings/ |
|
|
|
|
""" |
|
|
|
|
|
|
|
|
|
from pathlib import Path |
|
|
|
|
import os |
|
|
|
|
|
|
|
|
|
# Build paths inside the project like this: BASE_DIR / 'subdir'. |
|
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent |
|
|
|
|
@ -24,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 = False |
|
|
|
|
DEBUG = True |
|
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = ['*'] |
|
|
|
|
ALLOWED_HOSTS = [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Application definition |
|
|
|
|
@ -50,8 +49,6 @@ MIDDLEWARE = [ |
|
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
|
|
|
'django.contrib.messages.middleware.MessageMiddleware', |
|
|
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware', |
|
|
|
|
'django.middleware.security.SecurityMiddleware', |
|
|
|
|
'whitenoise.middleware.WhiteNoiseMiddleware', |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
ROOT_URLCONF = 'padel.urls' |
|
|
|
|
@ -80,13 +77,8 @@ WSGI_APPLICATION = 'padel.wsgi.application' |
|
|
|
|
|
|
|
|
|
DATABASES = { |
|
|
|
|
'default': { |
|
|
|
|
#'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', |
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3', |
|
|
|
|
'NAME': BASE_DIR / 'db.sqlite3', |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -139,7 +131,6 @@ USE_TZ = True |
|
|
|
|
# https://docs.djangoproject.com/en/4.1/howto/static-files/ |
|
|
|
|
|
|
|
|
|
STATIC_URL = 'static/' |
|
|
|
|
STATIC_ROOT = os.path.join(BASE_DIR, 'static/') |
|
|
|
|
|
|
|
|
|
# Default primary key field type |
|
|
|
|
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field |
|
|
|
|
|