Mercurial > hg-website
annotate hgscm/apps/www/views.py @ 45:7276388fc71b
about: integrate about page in django version
author | David Soria Parra <dsp@php.net> |
---|---|
date | Tue, 17 Feb 2009 12:54:07 +0100 |
parents | b3d9cbb33d54 |
children | 57ece5687f92 |
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)) |