Hi. I want to display images for news. Images class is a seperate model.
In generic view (index) to display news and images I use 2 "for" loops which work. In "single" view I use get_object_or_404 which changes a bit the template - it does not require the loops to display the text. If I understand it correctly I can't import data from other models for certain model without proper loop? How shoud I modify the "single" view and "single" template to make it display images from images class? http://pastebin.com/k6uzUktq -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/BgElCtaKaZ4J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.