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

Login-protected question submission and index pages.

parent 36d94c9a
......@@ -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):
def submit_question(request):
return render_to_response('submit_question.html', {
def index(request):
return render_to_response('index.html', {
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