1. Artur Barseghyan
  2. eximagination

Commits

Artur Barseghyan  committed f2cb337 Draft

docs updated

  • Participants
  • Parent commits 98e104d
  • Branches default

Comments (0)

Files changed (2)

File docs/conf.py

View file
 # built documents.
 #
 # The short X.Y version.
-version = '0.4'
+version = '0.5'
 # The full version, including alpha/beta/rc tags.
-release = '0.4'
+release = '0.5'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

File src/eximagination/templatetags/eximaginate.py

View file
 
         {% load eximaginate %}
 
-        {% eximaginate 'http://www.google.com/intl/en/images/logo.gif' %}
+        <img src="{{ MEDIA_URL }}{% eximaginate 'http://www.google.com/intl/en/images/logo.gif' %}">
 
     To put the the downloaded image URL on the context instead of just rendering
     the relative url, finish the tag with ``as [context_var_name]``::
 
         {% eximaginate 'http://www.google.com/intl/en/images/logo.gif' as original %}
 
-        {% thumbnail original 100x100 %}
+        <img src="{% thumbnail original 100x100 %}">
 
     Eximagination will automatically add "ei_width" and "ei_height" variables to the content - those are the original
     width and height values of the obtained image.