Add email templates for user notifications and account management

- Created a base email template (base.html) for consistent styling across all emails.
- Added moderation approval email template (moderation_approved.html) to notify users of approved submissions.
- Added moderation rejection email template (moderation_rejected.html) to inform users of required changes for their submissions.
- Created password reset email template (password_reset.html) for users requesting to reset their passwords.
- Developed a welcome email template (welcome.html) to greet new users and provide account details and tips for using ThrillWiki.
This commit is contained in:
pacnpal
2025-11-08 15:34:04 -05:00
parent 9c46ef8b03
commit d6ff4cc3a3
335 changed files with 61926 additions and 73 deletions

View File

@@ -19,14 +19,26 @@ ALLOWED_HOSTS = env.list('ALLOWED_HOSTS', default=['localhost', '127.0.0.1'])
# 'silk.middleware.SilkyMiddleware',
# ]
# Database - Use SQLite for quick local development if PostgreSQL not available
# Database - Use regular SQLite for local development
# PostGIS fields will work but without spatial query capabilities
# Full GIS features available in production with PostGIS
DATABASES = {
'default': env.db(
'DATABASE_URL',
default='sqlite:///db.sqlite3'
)
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
# Note: For full GIS capabilities in local dev, you would need:
# - SQLite compiled with extension support (pysqlite)
# - SpatiaLite extension installed
# For now, using regular SQLite is simpler for development
# GDAL library paths - Required even with regular SQLite when using GIS models
# For Homebrew on macOS (Apple Silicon)
GDAL_LIBRARY_PATH = env('GDAL_LIBRARY_PATH', default='/opt/homebrew/opt/gdal/lib/libgdal.dylib')
GEOS_LIBRARY_PATH = env('GEOS_LIBRARY_PATH', default='/opt/homebrew/opt/geos/lib/libgeos_c.dylib')
# Disable caching in development
CACHEOPS_ENABLED = False