Add new JavaScript and GIF assets for enhanced UI features

- Introduced a new loading indicator GIF to improve user experience during asynchronous operations.
- Added jQuery Ajax Queue plugin to manage queued Ajax requests, ensuring that new requests wait for previous ones to complete.
- Implemented jQuery Autocomplete plugin for enhanced input fields, allowing users to receive suggestions as they type.
- Included jQuery Bgiframe plugin to ensure proper rendering of elements in Internet Explorer 6.
This commit is contained in:
pacnpal
2025-08-20 12:31:33 -04:00
parent bead0654df
commit 69c07d1381
16 changed files with 1452 additions and 58 deletions

View File

@@ -2,21 +2,27 @@
Production settings for thrillwiki project.
"""
from . import base # Import the module and use its members, e.g., base.BASE_DIR, base***REMOVED***
from ..settings import database # Import the module and use its members, e.g., database.DATABASES
from ..settings import email # Import the module and use its members, e.g., email.EMAIL_HOST
from ..settings import security # Import the module and use its members, e.g., security.SECURE_HSTS_SECONDS
from ..settings import email # Import the module and use its members, e.g., email.EMAIL_HOST
from ..settings import security # Import the module and use its members, e.g., security.SECURE_HSTS_SECONDS
# Import the module and use its members, e.g., base.BASE_DIR, base***REMOVED***
from . import base
# Import the module and use its members, e.g., database.DATABASES
from ..settings import database
# Import the module and use its members, e.g., email.EMAIL_HOST
from ..settings import email
# Import the module and use its members, e.g., security.SECURE_HSTS_SECONDS
from ..settings import security
# Import the module and use its members, e.g., email.EMAIL_HOST
from ..settings import email
# Import the module and use its members, e.g., security.SECURE_HSTS_SECONDS
from ..settings import security
# Production settings
DEBUG = False
# Allowed hosts must be explicitly set in production
ALLOWED_HOSTS = base***REMOVED***('ALLOWED_HOSTS')
ALLOWED_HOSTS = base.env.list('ALLOWED_HOSTS')
# CSRF trusted origins for production
CSRF_TRUSTED_ORIGINS = base***REMOVED***('CSRF_TRUSTED_ORIGINS', default=[])
CSRF_TRUSTED_ORIGINS = base.env.list('CSRF_TRUSTED_ORIGINS')
# Security settings for production
SECURE_SSL_REDIRECT = True
@@ -80,18 +86,18 @@ LOGGING = {
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
# Cache settings for production (Redis recommended)
if base***REMOVED***('REDIS_URL', default=None):
redis_url = base.env.str('REDIS_URL', default=None)
if redis_url:
CACHES = {
'default': {
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': base***REMOVED***('REDIS_URL'),
'LOCATION': redis_url,
'OPTIONS': {
'CLIENT_CLASS': 'django_redis.client.DefaultClient',
}
}
}
# Use Redis for sessions in production
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
SESSION_CACHE_ALIAS = 'default'