Custom Functions in Django Template Tags | by Dhrumil Patel | The startup

0
Dynamic content
main/
|--project/
| |--app/
| | |--migrations/
| | |--templatetags/ <- templatetags folder
| | | +-- replace.py <- python script
Custom replacement function
{% load replace %}
{{ article.url | replace }}



Source link

Share.

Comments are closed.