Mercurial > hg-website
annotate hgscm/apps/www/views.py @ 65:57ece5687f92
Add 'about this page' site
author | David Soria Parra <dsp@php.net> |
---|---|
date | Wed, 18 Feb 2009 05:58:08 +0100 |
parents | 7276388fc71b |
children | bef09338eceb |
rev | line source |
---|---|
26
b3d9cbb33d54
adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff
changeset
|
1 from django.shortcuts import render_to_response |
b3d9cbb33d54
adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff
changeset
|
2 from django.template import RequestContext |
b3d9cbb33d54
adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff
changeset
|
3 |
b3d9cbb33d54
adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff
changeset
|
4 def frontpage(request): |
b3d9cbb33d54
adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff
changeset
|
5 return render_to_response("frontpage.html", { }, |
b3d9cbb33d54
adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff
changeset
|
6 RequestContext(request)) |
45
7276388fc71b
about: integrate about page in django version
David Soria Parra <dsp@php.net>
parents:
26
diff
changeset
|
7 def about(request): |
7276388fc71b
about: integrate about page in django version
David Soria Parra <dsp@php.net>
parents:
26
diff
changeset
|
8 return render_to_response("about.html", { }, |
7276388fc71b
about: integrate about page in django version
David Soria Parra <dsp@php.net>
parents:
26
diff
changeset
|
9 RequestContext(request)) |
65 | 10 def thepage(request): |
11 return render_to_response("thepage.html", { }, | |
12 RequestContext(request)) |