def media_files(request, domain, template='appstore/media_files.html'):
    dom = Domain.get(domain)
    if (not can_view_app(request, dom)):
        raise Http404()
    return render(request, template, {'project': dom, 'url_base': reverse('appstore')})
def media_files(request, domain, template='appstore/media_files.html'):
    dom = Domain.get(domain)
    if (not can_view_app(request, dom)):
        raise Http404()
    return render(request, template, {'project': dom, 'url_base': reverse('appstore')})