Ejemplo n.º 1
0
def control(request):
    output = None
    if request.method == 'POST':
        if 'mail' in request.POST:
            output = analyze_mail()
        elif 'performance' in request.POST:
            output = analyze_performance()
        elif 'randomizer' in request.POST:
            output = create_documents()
    return render(request, 'mop/control.html', {'output':output})       


    
    
Ejemplo n.º 2
0
 def handle_noargs(self, **options):
     analyze_performance()