unforld 1 not health yet
This commit is contained in:
@@ -36,6 +36,11 @@ ALLOWED_HOSTS = [
|
||||
]
|
||||
|
||||
INSTALLED_APPS = [
|
||||
# Django Unfold admin theme - MUST be before django.contrib.admin
|
||||
'unfold',
|
||||
'unfold.contrib.filters',
|
||||
'unfold.contrib.import_export',
|
||||
'unfold.contrib.simple_history',
|
||||
# Core Django apps - Custom admin with IGNY8 branding
|
||||
'igny8_core.admin.apps.Igny8AdminConfig', # Custom admin config
|
||||
'django.contrib.auth',
|
||||
@@ -51,6 +56,7 @@ INSTALLED_APPS = [
|
||||
'import_export',
|
||||
'rangefilter',
|
||||
'django_celery_results',
|
||||
'simple_history',
|
||||
# IGNY8 apps
|
||||
'igny8_core.auth.apps.Igny8CoreAuthConfig', # Use app config with custom label
|
||||
'igny8_core.ai.apps.AIConfig', # AI Framework
|
||||
@@ -108,6 +114,7 @@ MIDDLEWARE = [
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'simple_history.middleware.HistoryRequestMiddleware', # Audit trail
|
||||
'igny8_core.middleware.request_id.RequestIDMiddleware', # Request ID tracking (must be early)
|
||||
'igny8_core.auth.middleware.AccountContextMiddleware', # Multi-account support
|
||||
# AccountContextMiddleware sets request.account from JWT
|
||||
@@ -607,6 +614,40 @@ CELERY_CACHE_BACKEND = 'django-cache'
|
||||
# Import/Export Settings
|
||||
IMPORT_EXPORT_USE_TRANSACTIONS = True
|
||||
|
||||
# ==============================================================================
|
||||
# UNFOLD ADMIN CONFIGURATION
|
||||
# ==============================================================================
|
||||
# Modern Django admin theme with advanced features
|
||||
# Documentation: https://unfoldadmin.com/
|
||||
|
||||
UNFOLD = {
|
||||
"SITE_TITLE": "IGNY8 Administration",
|
||||
"SITE_HEADER": "IGNY8 Admin",
|
||||
"SITE_URL": "/",
|
||||
"SITE_SYMBOL": "speed", # Symbol from Material icons
|
||||
"SHOW_HISTORY": True, # Show history for models with simple_history
|
||||
"SHOW_VIEW_ON_SITE": True, # Show "View on site" button
|
||||
"COLORS": {
|
||||
"primary": {
|
||||
"50": "248 250 252",
|
||||
"100": "241 245 249",
|
||||
"200": "226 232 240",
|
||||
"300": "203 213 225",
|
||||
"400": "148 163 184",
|
||||
"500": "100 116 139",
|
||||
"600": "71 85 105",
|
||||
"700": "51 65 85",
|
||||
"800": "30 41 59",
|
||||
"900": "15 23 42",
|
||||
"950": "2 6 23",
|
||||
},
|
||||
},
|
||||
"SIDEBAR": {
|
||||
"show_search": True, # Show search in sidebar
|
||||
"show_all_applications": True, # Show all apps (we'll organize via custom get_app_list)
|
||||
},
|
||||
}
|
||||
|
||||
# Billing / Payments configuration
|
||||
STRIPE_PUBLIC_KEY = os.getenv('STRIPE_PUBLIC_KEY', '')
|
||||
STRIPE_SECRET_KEY = os.getenv('STRIPE_SECRET_KEY', '')
|
||||
|
||||
Reference in New Issue
Block a user