Source code for gpfjs.views
from django.contrib.staticfiles import finders
from django.contrib.staticfiles.views import serve
from django.shortcuts import render
[docs]
def index(request):
if finders.find("gpfjs/gpfjs/index.html"):
return serve(request, "gpfjs/gpfjs/index.html")
return render(request, "gpfjs/empty/empty.html")
[docs]
def favicon(request):
if finders.find("gpfjs/gpfjs/favicon.ico"):
return serve(request, "gpfjs/gpfjs/favicon.ico")
return render(request, "gpfjs/empty/favicon.ico")