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