| author | Nishanth Amuluru <nishanth@fossee.in> |
| Fri, 07 Jan 2011 11:19:36 +0530 | |
| changeset 266 | 4dfcc826b241 |
| parent 241 | 479cbf5c822a |
| child 267 | b1245d75938d |
| permissions | -rwxr-xr-x |
from django.shortcuts import render_to_response, redirect from django.contrib.auth.decorators import login_required @login_required def view_profile(request): user = request.user profile = user.get_profile() context = {"user": user, "profile": profile, } return render_to_response("/profile/view.html", context)