DJANGO Phase 1

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-13 22:34:36 +00:00
parent 60263b4682
commit 1acecd8639
68 changed files with 9797 additions and 46 deletions

View File

@@ -36,16 +36,25 @@ ALLOWED_HOSTS = [
]
INSTALLED_APPS = [
# Django Admin Enhancements (must be before django.contrib.admin)
'admin_interface',
'colorfield',
# Core Django apps
'igny8_core.admin.apps.Igny8AdminConfig', # Custom admin config
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# Third-party apps
'rest_framework',
'django_filters',
'corsheaders',
'drf_spectacular', # OpenAPI 3.0 schema generation
'import_export',
'rangefilter',
'django_celery_results',
# IGNY8 apps
'igny8_core.auth.apps.Igny8CoreAuthConfig', # Use app config with custom label
'igny8_core.ai.apps.AIConfig', # AI Framework
'igny8_core.modules.planner.apps.PlannerConfig',
@@ -591,6 +600,16 @@ LOGGING = {
},
}
# Admin Interface Configuration
X_FRAME_OPTIONS = 'SAMEORIGIN' # Required for django-admin-interface
# Celery Results Backend
CELERY_RESULT_BACKEND = 'django-db'
CELERY_CACHE_BACKEND = 'django-cache'
# Import/Export Settings
IMPORT_EXPORT_USE_TRANSACTIONS = True
# Billing / Payments configuration
STRIPE_PUBLIC_KEY = os.getenv('STRIPE_PUBLIC_KEY', '')
STRIPE_SECRET_KEY = os.getenv('STRIPE_SECRET_KEY', '')