2026-03-19 21:35:41 +01:00
|
|
|
from django.conf import settings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def build_info(request):
|
|
|
|
|
return {'BUILD_TIME': getattr(settings, 'BUILD_TIME', '')}
|
2026-04-04 21:05:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
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),
|
|
|
|
|
}
|