Blame view

apps/homepage/views.py 562 Bytes
831eac332   zhuzhenchao   add file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  
  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))