Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 6ad65ffd5b
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.544 kB
from django.http import HttpResponse
from django.shortcuts import render
from django.template import RequestContext
from users.service import UserService
from images.forms import UploadForm
def home(request):
user = None
if 'user_id' in request.session:
user_service = UserService()
user = user_service.get(request.session['user_id'])
upload_form = UploadForm(label_suffix="<br/>")
return render(request, 'home.html', {"user": user, "upload_form": upload_form}, context_instance=RequestContext(request))
Jump to Line
Something went wrong with that request. Please try again.