update
This commit is contained in:
33
fraud_platform/settings/development.py
Normal file
33
fraud_platform/settings/development.py
Normal file
@@ -0,0 +1,33 @@
|
||||
"""
|
||||
Development settings for fraud_platform project.
|
||||
"""
|
||||
from .base import *
|
||||
import os
|
||||
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['localhost', '127.0.0.1']
|
||||
|
||||
# Use SQLite for development if PostgreSQL is not available
|
||||
if os.environ.get('USE_SQLITE', 'True').lower() == 'true':
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': BASE_DIR / 'db.sqlite3',
|
||||
}
|
||||
}
|
||||
|
||||
# Development-specific settings (django_extensions is optional)
|
||||
# INSTALLED_APPS += [
|
||||
# 'django_extensions', # Optional: for development tools
|
||||
# ]
|
||||
|
||||
# Use SiteSettings email backend (will use console if SMTP not configured)
|
||||
# EMAIL_BACKEND is set in base.py to use SiteSettingsEmailBackend
|
||||
# This allows admin to configure SMTP even in development
|
||||
|
||||
# Disable security features for development
|
||||
SECURE_SSL_REDIRECT = False
|
||||
SESSION_COOKIE_SECURE = False
|
||||
CSRF_COOKIE_SECURE = False
|
||||
|
||||
Reference in New Issue
Block a user