""" Minimal settings for Docker build process (static file collection) This file contains only the necessary settings for collectstatic to work during build. """ import os from pathlib import Path BASE_DIR = Path(__file__).resolve().parent.parent.parent # Security settings (minimal for build) SECRET_KEY = 'build-time-secret-key-not-for-production' DEBUG = False ALLOWED_HOSTS = ['*'] # Static files settings (primary purpose of this file) STATIC_URL = '/static/' STATIC_ROOT = BASE_DIR / 'staticfiles' STATICFILES_DIRS = [BASE_DIR / 'static'] STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' # Required apps for static file collection (include all apps that have static files) INSTALLED_APPS = [ 'django.contrib.staticfiles', 'tailwind', 'django_browser_reload', 'theme', # Our Tailwind theme app 'apps.core', # Include our apps in case they have static files ] # Tailwind CSS Configuration TAILWIND_APP_NAME = 'theme' # Minimal database config (not used but required by Django) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:', } } # Disable middleware and other unnecessary components for build MIDDLEWARE = [] ROOT_URLCONF = None USE_TZ = True