0

peateasea.de · 7d · discuss

Y’know the example text you sometimes see in input fields on web forms? It turns out that that’s called a placeholder. In Django, to add placeholders, you set an attribute on the widget for the appropriate form field. When I searched for the best way to do this, I ended up finding roughly three ways people do it in practice. Here’s what I learned.