from django.shortcuts import render

def coming_soon(request):
    return render(request, 'landing/coming_soon.html')


from django.http import FileResponse, Http404
from django.conf import settings
import os

def serve_logo(request):
    path = os.path.join(settings.STATIC_ROOT, 'img', 'logo.png')
    return FileResponse(open(path, 'rb'), content_type='image/png')

def serve_static(request, path):
    file_path = os.path.join(settings.STATIC_ROOT, path)
    if os.path.exists(file_path):
        return FileResponse(open(file_path, 'rb'))
    raise Http404("Static file not found")