- HIGHLIGHTS_MAX_BYTES, BOOKMARKS_MAX_BYTES: books size limits now in settings - PODCAST_INBOX_PAGE_SIZE: shared between podcasts/views.py and app.js via DIORA_CONFIG - VOLUME_DEFAULT: radio stream player default volume - ITUNES_TIMEOUT: unified iTunes API timeout (was 5s vs 6s inconsistency) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 lines
417 B
Python
13 lines
417 B
Python
from django.conf import settings
|
|
|
|
|
|
def build_info(request):
|
|
return {'BUILD_TIME': getattr(settings, 'BUILD_TIME', '')}
|
|
|
|
|
|
def upload_limits(request):
|
|
return {
|
|
'EBOOK_MAX_BYTES': getattr(settings, 'EBOOK_MAX_BYTES', 10 * 1024 * 1024),
|
|
'BG_MAX_BYTES': getattr(settings, 'BG_MAX_BYTES', 5 * 1024 * 1024),
|
|
'PODCAST_INBOX_PAGE_SIZE': getattr(settings, 'PODCAST_INBOX_PAGE_SIZE', 200),
|
|
}
|