Hi al, I understand that there is a google code fourm for django-watermark, but i am really trying to get some help here with regards to using django-watermarks
Here's what happened: 1. My installation of django-watermark is successful and the issues occurred after i typed in the watermark filter in my html code. 2. My code is: <img src="{{ images_id.images.url|watermark:"testing,position=br,opacity=35" }}" id="room2" border="0"> I have also tried this(this version is no opening and close commas in the outside the {{ and }} ): <img src={{ images_id.images.url| watermark:"testing,position=br,opacity=35" }} id="room2" border="0"> 3. After when i refreshed my page to see the result, i received the following error: "Caught an exception while rendering: global name '_percent' is not defined" the full error message is as follows: *********************************************************************** TemplateSyntaxError at /image/details/112/ Caught an exception while rendering: global name '_percent' is not defined Request Method: GET Request URL: http://localhost:8000/image/details/112/ Exception Type: TemplateSyntaxError Exception Value: Caught an exception while rendering: global name '_percent' is not defined Exception Location: /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node, line 81 Python Executable: /usr/bin/python Python Version: 2.6.2 Python Path: ['/home/eugene/public_html/django/ajaxcrud', '/usr/local/lib/python2.6/dist-packages/django_watermark-0.1.5_pre1- py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/Numeric', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/var/lib/python-support/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages'] Server time: Sat, 24 Oct 2009 03:02:14 -0500 ************************************************************************** I am using Ubuntu 9.04, Django 1.02. May i know how do i fix this error? Cos i find it weird that the _percent thing is not defined... If i do not use the watermark filter, there is no problems at all. Or am i doing something wrong with the html code? Please advise me. Thank you! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---