Ejemplo n.º 1
0
    def get(self,request):

        quantity = request.GET['quantity']
        key = "chord_Generator/keys/A#Bb.txt"
        chord = generate_chords(key, quantity)
        chords = chord
        return render(request, 'home.html',{'chords' : chords})
Ejemplo n.º 2
0
 def get(self,request):
     print("test1")
     quantity = request.GET['quantity']
     key = "chord_Generator/keys/{{ chord }}.txt"
     chord = generate_chords(key, quantity)
     chords = chord
     #split = chord...
     print("test1")
     return render(request, 'home.html',{'chords' : chords})
Ejemplo n.º 3
0
    def get(self,request):

        quantity = request.GET['quantity']
        print(quantity)

        key = "chord_Generator/keys/A.txt"
        chord = generate_chords(key, quantity)
        chords = chord
        split = ''.join(str(e) for e in chords)
        return render(request, 'home.html',{'chords' : chords})