Added template for viewing profile
authorNishanth Amuluru <nishanth@fossee.in>
Fri, 07 Jan 2011 11:25:21 +0530
changeset 267 b1245d75938d
parent 266 4dfcc826b241
child 268 f501fc2a9f4c
Added template for viewing profile
profile/urls.py
profile/views.py
templates/profile/view.html
--- /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),
+)
+
--- 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)
--- /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}} <br />
+gender: {{profile.gender}} <br />
+About Me: {{profile.aboutme}} <br />
+address: {{profile.address}} <br />
+phone number: {{profile.phonenum}} <br />
+{% endblock %}