--- /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 %}