Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 628 Bytes
from django.conf import settings
from django.http import HttpResponse
from django.utils.importlib import import_module
def warmup(request):
Provides default procedure for handling warmup requests on App
Engine. Just add this view to your main
for app in settings.INSTALLED_APPS:
for name in ('urls', 'views', 'models'):
import_module('%s.%s' % (app, name))
except ImportError:
content_type = 'text/plain; charset=%s' % settings.DEFAULT_CHARSET
return HttpResponse("Warmup done.", content_type=content_type)
Something went wrong with that request. Please try again.