Commit a2428ea8 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Allow index to see questions.

parent e6e1bfcf
from website.models import Question, Comment, Reply
from website.forms import QuestionForm
from website.forms import QuestionForm, CommentForm, ReplyForm
from django.conf import settings
from django.shortcuts import render_to_response, get_object_or_404
from django.shortcuts import render
......@@ -36,6 +36,10 @@ def submit_question(request):
def index(request):
if request.method == 'POST':
return render_to_response('index.html', {
'questions' : Question.objects.all(),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment