Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def pages(request, id):
- obj = rtves_programas.objects.get(id=id)
- context = {'title': obj.title,
- 'show_date': obj.show_date,
- 'script' : obj.script,
- 'script_eng': obj.script_eng,
- 'description': obj.description,
- 'description_eng': obj.description_eng,
- 'show_id':obj.show_id,
- 'url': obj.url,
- }
- return render(request, 'rtves/pages.html', context)
- {% if script %}
- {% for sentence in script %}
- {{ sentence }}
- {% endfor %}
- {% else %}
- <p>Nothing here</p>
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement