Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def exercise(request,id):
- exercise = Exercise.objects.get(id=id)
- if request.method == 'POST':
- form = SolveExercise(request.POST)
- answer = form.clean()
- print(answer)
- form = SolveExercise()
- context = {
- "exercise":exercise,
- "form":form
- }
- return render(request,"core/exercise.html",context)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement