| author | ymh <ymh.work@gmail.com> |
| Wed, 06 Jun 2012 23:00:42 +0200 | |
| changeset 16 | e37a29d23c86 |
| child 19 | a019732d9700 |
| permissions | -rw-r--r-- |
| 16 | 1 |
|
2 |
from django.shortcuts import render_to_response |
|
3 |
from django.template import RequestContext |
|
4 |
from ldt.ldt_utils.models import Content |
|
5 |
||
6 |
def home(request): |
|
7 |
||
8 |
contents = Content.objects.filter(front_project__state = 2) |
|
9 |
||
10 |
return render_to_response('home.html', {'contents': contents}, context_instance=RequestContext(request)) |