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
fa0bd9d6
Commit
fa0bd9d6
authored
Dec 03, 2013
by
Jean Michel Rouly
Browse files
Login-protected question submission and index pages.
parent
36d94c9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
researchquestions/website/views.py
View file @
fa0bd9d6
...
...
@@ -2,6 +2,7 @@ from website.models import Question, Comment, Reply, User
from
django.conf
import
settings
from
django.shortcuts
import
render_to_response
,
get_object_or_404
from
django.shortcuts
import
render
from
django.contrib.auth.decorators
import
login_required
import
requests
...
...
@@ -11,7 +12,14 @@ def instructions(request):
},
)
@
login_required
def
submit_question
(
request
):
return
render_to_response
(
'submit_question.html'
,
{
},
)
@
login_required
def
index
(
request
):
return
render_to_response
(
'index.html'
,
{
},
)
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