Пример #1
0
def randomP(request):
    """
        Génération aléatoire.
        
    """
        
    
    
    if not hasattr(request.user, 'personne'):
        p = Personne()
        p.user = request.user
        p.filter = "Superadmin"
        p.save()
        request.user.first_name = "Dieu"
        request.user.last_name = "Tout puissant"
        request.user.save()
        
    generator.personnes(request.user.personne, 300, True)  
    generator.groupe(10, True)
    generator.courType(200, True)
    generator.salles(2, 10, True)
     
    generator.uvs(3, 12, True)
    generator.module(4, True)
    generator.generEmploiedutemp()
    
   
    
    text = """done"""
    return HttpResponse(text)
Пример #2
0
def randomP(request):
    
    generator.personnes(300)
    text = """done"""
    return HttpResponse(text)