Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
research-questions
Commits
a2428ea8
Commit
a2428ea8
authored
Dec 03, 2013
by
Jean Michel Rouly
Browse files
Allow index to see questions.
parent
e6e1bfcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
researchquestions/website/views.py
View file @
a2428ea8
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):
@
login_required
def
index
(
request
):
if
request
.
method
==
'POST'
:
pass
return
render_to_response
(
'index.html'
,
{
'questions'
:
Question
.
objects
.
all
(),
},
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment