mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 07:11:08 -05:00
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:
@@ -2,10 +2,13 @@
|
||||
Local development settings for thrillwiki project.
|
||||
"""
|
||||
|
||||
import logging
|
||||
from .base import *
|
||||
from ..settings import database
|
||||
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., email.EMAIL_HOST
|
||||
from ..settings import email
|
||||
# Import the module and use its members, e.g., security.SECURE_HSTS_SECONDS
|
||||
from ..settings import security
|
||||
from .base import env # Import env for environment variable access
|
||||
|
||||
# Import database configuration
|
||||
@@ -24,9 +27,8 @@ CSRF_TRUSTED_ORIGINS = [
|
||||
"https://beta.thrillwiki.com",
|
||||
]
|
||||
|
||||
# GeoDjango Settings for macOS development
|
||||
GDAL_LIBRARY_PATH = env('GDAL_LIBRARY_PATH', default="/opt/homebrew/lib/libgdal.dylib")
|
||||
GEOS_LIBRARY_PATH = env('GEOS_LIBRARY_PATH', default="/opt/homebrew/lib/libgeos_c.dylib")
|
||||
GDAL_LIBRARY_PATH = "/opt/homebrew/lib/libgdal.dylib"
|
||||
GEOS_LIBRARY_PATH = "/opt/homebrew/lib/libgeos_c.dylib"
|
||||
|
||||
# Local cache configuration
|
||||
LOC_MEM_CACHE_BACKEND = "django.core.cache.backends.locmem.LocMemCache"
|
||||
@@ -69,6 +71,7 @@ DEVELOPMENT_APPS = [
|
||||
'silk',
|
||||
'debug_toolbar',
|
||||
'nplusone.ext.django',
|
||||
'django_extensions',
|
||||
]
|
||||
|
||||
# Add development apps if available
|
||||
@@ -94,17 +97,19 @@ for middleware in DEVELOPMENT_MIDDLEWARE:
|
||||
INTERNAL_IPS = ['127.0.0.1', '::1']
|
||||
|
||||
# Silk configuration for development
|
||||
SILKY_PYTHON_PROFILER = False # Disable profiler to avoid silk_profile installation issues
|
||||
# Disable profiler to avoid silk_profile installation issues
|
||||
SILKY_PYTHON_PROFILER = False
|
||||
SILKY_PYTHON_PROFILER_BINARY = False # Disable binary profiler
|
||||
# SILKY_PYTHON_PROFILER_RESULT_PATH = BASE_DIR / 'profiles' # Not needed when profiler is disabled
|
||||
SILKY_PYTHON_PROFILER_RESULT_PATH = BASE_DIR / \
|
||||
'profiles' # Not needed when profiler is disabled
|
||||
SILKY_AUTHENTICATION = True # Require login to access Silk
|
||||
SILKY_AUTHORISATION = True # Enable authorization
|
||||
SILKY_MAX_REQUEST_BODY_SIZE = -1 # Don't limit request body size
|
||||
SILKY_MAX_RESPONSE_BODY_SIZE = 1024 # Limit response body size to 1KB for performance
|
||||
# Limit response body size to 1KB for performance
|
||||
SILKY_MAX_RESPONSE_BODY_SIZE = 1024
|
||||
SILKY_META = True # Record metadata about requests
|
||||
|
||||
# NPlusOne configuration
|
||||
import logging
|
||||
NPLUSONE_LOGGER = logging.getLogger('nplusone')
|
||||
NPLUSONE_LOG_LEVEL = logging.WARN
|
||||
|
||||
|
||||
Reference in New Issue
Block a user