Image inlining template tag example

1
2
3
4
5
6
7
{% load image_tags %}
{% embedded_img src="/media/images/002.gif" height="200px" width="200px" alt="{{my_var}}" %}
{% embedded_img src="{{MEDIA_URL}}upload/images/001.jpg" height="200px" width="200px" alt="001" %}
{% embedded_img src="upload/images/logo_corp_264.png" alt="corp" %}
{% embedded_img src="{{MEDIA_URL}}upload/images/001.jpg" width="200px" alt="lala" %}
{% embedded_img src="{{MEDIA_URL}}upload/images/001.jpg" height="200px" width="200px" alt="my image" %}
{% embedded_img src="{{MEDIA_URL}}upload/images/001.jpg" %}

More like this

  1. Image inlining template tag example by rbeck 3 years, 5 months ago
  2. Image inlining template tag lib by rbeck 3 years, 5 months ago
  3. Sending html emails with inline attachments/images using Django by alexhayes 5 months, 1 week ago
  4. group_by snippet separating grouped objects by iElectric 3 years, 3 months ago
  5. django image bundle template tag library by amitu 6 years, 10 months ago

Comments

(Forgotten your password?)