Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django import template
- register = template.Library()
- @register.inclusion_tag('articles/hots_articles.html')
- def show_results(hot):
- # Тут что-то буде вычисляться
- pass
- {% show_results hot %}
- {% load articles_extras %}
- <p>Test</p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement