I am learning now geodjango. I made basic web app with postgis database. With openlayers  iam displaying basic wms map and I want to add other layers from my postgis database. I use render_to_kml function and then I visualize this kml with openlayers. The problem is that I can only display point layers instead of multipolygons...I tried to make another kml template bud I misunderstand it and there is no good documentation... I paste here my files ( view, template, urls) and pls give me advice if you can,,,where I have mistake ( I think it will be something with KML templates but i dont know.)

![this is my views.py][1]


![this is my html template][2]


![this is my urls.py][3]


1. this is my views.py

  [1]: https://i.sstatic.net/7TY46.png

2. this is my html template

  [2]: https://i.sstatic.net/WNIzO.png

3. this is my urls.py

  [3]: https://i.sstatic.net/LNeFX.png

This results into application with 2 layers which are equivallent (both are point feature....Polygons feature is only copy od Point feature...Thats my problem)...
Anyone have pls solution for me? Thank, Mchal Beniak