doc:appunti:prog:django
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:prog:django [2011/06/26 11:33] – [Mettere i dati nella vista] niccolo | doc:appunti:prog:django [2011/06/26 11:49] – [Mettere i dati nella vista] niccolo | ||
---|---|---|---|
Line 215: | Line 215: | ||
from django.template.loader import get_template | from django.template.loader import get_template | ||
- | def balance(request): | + | def my_view(request): |
- | template = get_template(' | + | template = get_template(' |
variables = Context({ | variables = Context({ | ||
' | ' | ||
Line 224: | Line 224: | ||
return HttpResponse(output) | return HttpResponse(output) | ||
</ | </ | ||
+ | |||
+ | FIXME Da fare: | ||
+ | |||
+ | * Aggiungere nella vista l' | ||
+ | * Aggiungere nel template l' | ||
+ | * Trovare il modo per mostrare i dati aggregati (somma di un campo, ecc.). | ||
===== Webserver di test ===== | ===== Webserver di test ===== | ||
doc/appunti/prog/django.txt · Last modified: 2011/06/28 09:15 by niccolo