Re: static templatetag: adding default argument blank

2019-01-20 Thread Mohammad Etemaddar
You are right. This is a better option, {{ STATIC_URL }}. Mohammad Etemaddar * in * Programming services: *Python* & *Linux* On Sun, Jan 20, 2019 at 9:46 PM Adam Johnson wrote: > I would be against adding this. Most text editors sup

Re: static templatetag: adding default argument blank

2019-01-20 Thread Adam Johnson
I would be against adding this. Most text editors support a find-and-replace with regex option that would let you capture the asset path and place it within the {% static '' %} tag; additionally, you could always change your templates to include STATIC_URL globally and just do {{ STATIC_URL }} if y

static templatetag: adding default argument blank

2019-01-20 Thread Mohammad Etemaddar
in the conversion of HTML template to Django template, sometimes it is hard to find&remplce static paths. In current Django template we should change for example this: to as you see we add two parts to the href: We can also do in this order: (2) In this way, we need to do only one find/