views.py
562 Bytes
from datetime import datetime
from datetime import timedelta
from django.http import HttpResponse
from django.shortcuts import render_to_response, render
from django.template.context import RequestContext
from django.views.decorators.http import require_GET
from django.contrib.auth.decorators import login_required
@login_required
def homepage(request):
username = request.user.username
context = {
}
return render_to_response('homepage/index.html', context=context,
context_instance=RequestContext(request))