changing settings

This commit is contained in:
Arnold Dechamps 2024-03-26 16:30:25 +01:00
parent 5278a967bb
commit 74d9c6102a
No known key found for this signature in database
GPG key ID: AE66543374E41C89
2 changed files with 12 additions and 4 deletions

View file

@ -0,0 +1,5 @@
SECRET_KEY = 'xinxl8xx#j$)#5h#pbv3knyyq2d6o%j125rx==e7vz*#wsd32w'
DEBUG = True
ALLOWED_HOSTS = []

View file

@ -21,12 +21,12 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'xinxl8xx#j$)#5h#pbv3knyyq2d6o%j125rx==e7vz*#wsd32w'
SCRET_KEY = config.SECRET_KEY
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = config.DEBUG
ALLOWED_HOSTS = []
ALLOWED_HOSTS = config.ALLOWED_HOSTS
# Application definition
@ -122,7 +122,10 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = 'https://static.tldtest.net/'
if DEBUG is True:
STATIC_URL = "static/"
else:
STATIC_URL = 'https://static.tldtest.net/'
STATIC_ROOT = BASE_DIR / "staticfiles"
STATICFILES_DIRS = [