# HG changeset patch # User Nishanth Amuluru # Date 1294379721 -19800 # Node ID b1245d75938d7bec43bbd433390334293b1f7ab1 # Parent 4dfcc826b241c54a69ed4272a9edda1f1edb4815 Added template for viewing profile diff -r 4dfcc826b241 -r b1245d75938d profile/urls.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/profile/urls.py Fri Jan 07 11:25:21 2011 +0530 @@ -0,0 +1,9 @@ +from django.conf.urls.defaults import * + +from pytask.profile.views import view_profile + +urlpatterns = patterns('', + + (r'view', view_profile), +) + diff -r 4dfcc826b241 -r b1245d75938d profile/views.py --- a/profile/views.py Fri Jan 07 11:19:36 2011 +0530 +++ b/profile/views.py Fri Jan 07 11:25:21 2011 +0530 @@ -12,4 +12,4 @@ context = {"user": user, "profile": profile, } - return render_to_response("/profile/view.html", context) + return render_to_response("profile/view.html", context) diff -r 4dfcc826b241 -r b1245d75938d templates/profile/view.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/profile/view.html Fri Jan 07 11:25:21 2011 +0530 @@ -0,0 +1,8 @@ +{% extends 'base.html' %} +{% block content %} +username: {{user.username}}
+gender: {{profile.gender}}
+About Me: {{profile.aboutme}}
+address: {{profile.address}}
+phone number: {{profile.phonenum}}
+{% endblock %}