def ask(request):
if request.method == 'POST':
form = AskForm(request.POST)
if form.is_valid():
question = form.save(commit=False)
question.author = request.user
question.save()
return redirect('/question/one_question') + str(question.id)
return HttpResponseBadRequest()