views.py 601 Bytes
Newer Older
Jean Michel Rouly's avatar
Jean Michel Rouly committed
1
from website.models import Question, Comment, Reply, User
Jean Michel Rouly's avatar
Jean Michel Rouly committed
2
3
from django.conf import settings
from django.shortcuts import render_to_response, get_object_or_404
Jean Michel Rouly's avatar
Jean Michel Rouly committed
4
from django.shortcuts import render
5
from django.contrib.auth.decorators import login_required
Jean Michel Rouly's avatar
Jean Michel Rouly committed
6

Jean Michel Rouly's avatar
Jean Michel Rouly committed
7
8
import requests

Jean Michel Rouly's avatar
Jean Michel Rouly committed
9
# Create your views here.
Jean Michel Rouly's avatar
Jean Michel Rouly committed
10
11
12
13
14
def instructions(request):
    return render_to_response('instructions.html', {
    },
    )

15
@login_required
Jean Michel Rouly's avatar
Jean Michel Rouly committed
16
17
18
19
def submit_question(request):
    return render_to_response('submit_question.html', {
    },
    )
20
21
22
23
24
25

@login_required
def index(request):
    return render_to_response('index.html', {
    },
    )