Files
edx-platform/staticbook/views.py
Piotr Mitros c4f484c43a Security issue
2011-12-29 16:47:04 -05:00

12 lines
380 B
Python

# Create your views here.
from djangomako.shortcuts import render_to_response, render_to_string
from django.shortcuts import redirect
import os
from django.conf import settings
from django.http import Http404
def index(request, page=1):
if not request.user.is_authenticated():
return redirect('/')
return render_to_response('staticbook.html',{'page':int(page)})