from .models import SiteSettings

def project_context(request):
    settings = SiteSettings.objects.first()
    if not settings:
        settings = SiteSettings.objects.create(site_name="BitCrypto")
    return {
        'site_settings': settings,
        'project_name': settings.site_name,
        'project_description': "全球领先的数字资产交易平台"
    }

# Alias for compatibility if needed
site_settings = project_context