Add tailwind and daisyUI

This commit is contained in:
badblocks 2025-02-26 17:18:48 -08:00
parent 80da7be559
commit 0b8e6c2d50
19 changed files with 2292 additions and 24289 deletions

View file

@ -16,12 +16,13 @@ SECRET_KEY = "django-insecure-0peo@#x9jur3!h$ryje!$879xww8y1y66jx!%*#ymhg&jkozs2
DEBUG = True
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1"]
ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1", "pocket-trade-dev.fly.dev"]
# Application definition
# https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
INSTALLED_APPS = [
"django_daisy",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
@ -30,7 +31,6 @@ INSTALLED_APPS = [
"whitenoise.runserver_nostatic",
"django.contrib.staticfiles",
"django.contrib.sites",
# Third-party
"allauth",
"allauth.account",
'allauth.socialaccount.providers.google',
@ -39,9 +39,8 @@ INSTALLED_APPS = [
"debug_toolbar",
"el_pagination",
"tailwind",
#"theme",
"theme",
"django_browser_reload",
# Local
"accounts",
"cards",
"home",
@ -49,6 +48,8 @@ INSTALLED_APPS = [
"friend_codes"
]
TAILWIND_APP_NAME = 'theme'
# https://docs.djangoproject.com/en/dev/ref/settings/#middleware
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
@ -65,6 +66,11 @@ MIDDLEWARE = [
"django_project.middleware.AutoLoginMiddleware",
]
DAISY_SETTINGS = {
'SITE_TITLE': 'Pocket.Trade Admin',
'DONT_SUPPORT_ME': True,
}
# https://docs.djangoproject.com/en/dev/ref/settings/#root-urlconf
ROOT_URLCONF = "django_project.urls"
@ -75,7 +81,8 @@ WSGI_APPLICATION = "django_project.wsgi.application"
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [BASE_DIR / "templates"],
#"DIRS": [BASE_DIR / "templates"],
"DIRS": [BASE_DIR / "theme", BASE_DIR / "templates"],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
@ -105,6 +112,17 @@ DATABASES = {
"PASSWORD": "postgres",
"HOST": "db", # set in docker-compose.yml
"PORT": 5432, # default postgres port
},
"neon": {
"ENGINE": "django.db.backends.postgresql",
"NAME": "pocket-trade",
"USER": "pocket_trade_owner",
"PASSWORD": "npg_f1lTpOX7Rnvb",
"HOST": "ep-cool-cake-a6zvgu85-pooler.us-west-2.aws.neon.tech", # set in docker-compose.yml
"PORT": 5432, # default postgres port
"OPTIONS": {
"sslmode": "require"
},
}
}