deployment
This commit is contained in:
parent
4f2e8277df
commit
8c6066176b
5 changed files with 49 additions and 184 deletions
|
@ -1,19 +1,8 @@
|
|||
"""
|
||||
Django settings for core project.
|
||||
|
||||
Generated by 'django-admin startproject' using Django 4.2.2.
|
||||
|
||||
For more information on this file, see
|
||||
https://docs.djangoproject.com/en/4.2/topics/settings/
|
||||
|
||||
For the full list of settings and their values, see
|
||||
https://docs.djangoproject.com/en/4.2/ref/settings/
|
||||
"""
|
||||
|
||||
import os
|
||||
import environ
|
||||
from pathlib import Path
|
||||
|
||||
import environ
|
||||
|
||||
env = environ.Env()
|
||||
|
||||
|
||||
|
@ -112,17 +101,7 @@ WSGI_APPLICATION = "core.wsgi.application"
|
|||
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
|
||||
|
||||
DATABASES = {
|
||||
"default": {
|
||||
# "ENGINE": "django.db.backends.sqlite3",
|
||||
# "NAME": BASE_DIR / "db.sqlite3",
|
||||
# "ENGINE": "django.db.backends.postgresql",
|
||||
# "NAME": "django_traefik",
|
||||
# "USER": "django_traefik",
|
||||
# "PASSWORD": "django_traefik",
|
||||
# "HOST": "db",
|
||||
# "PORT": "5432",
|
||||
"default": env.db(),
|
||||
}
|
||||
"default": env.db(),
|
||||
}
|
||||
|
||||
|
||||
|
@ -162,6 +141,7 @@ USE_TZ = True
|
|||
|
||||
STATIC_URL = "static/"
|
||||
STATICFILES_DIRS = [BASE_DIR / "static"]
|
||||
STATIC_ROOT = BASE_DIR / "staticfiles"
|
||||
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
|
||||
|
||||
# Default primary key field type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue