12311k

Untitled

Feb 11th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. def articles_by_tag(request, tag):
  2. found_articles = []
  3. for article in articles_list:
  4. if tag in article[4]:
  5. found_articles.append(article)
  6. beautiful_html = generate_html(found_articles)
  7. return HttpResponse(beautiful_html)
Add Comment
Please, Sign In to add comment