def populateDB(request): populateDatabase() animes = Anime.objects.all().count() puntuaciones = Rating.objects.all().count() return render(request, 'populate.html', {'animes': animes, 'puntuaciones': puntuaciones})
def populateDB(request): populateDatabase() return render(request, 'inicio.html', {'mensaje': 'Se ha generado correctamente la base de datos'})
def populateDB(request): populateDatabase() return render(request, 'populate.html')
def populateDB(request): populateDatabase() return render_to_response('populate.html')
def populateDB(request): populateDatabase() return render_to_response('populate.html', context_instance=RequestContext(request))