I got around to trying urlize on my production app and it works fine.
The problem must have been in my older version of the SDK. Thanx for
your help and encouragement, Niklas
Brian in Atlanta
--~--~-~--~~~---~--~~
You received this message because you are
an understandable trivial example with pure gae (no additional django
patch needed just a recent sdk):
.py:
path = os.path.join(os.path.dirname(__file__), 'directory',
'detail.html')
a='www.google.com'
self.response.out.write(template.render(path, {'a':a,
...othervariables
detail.html:
regular expressions.
On Sat, Feb 28, 2009 at 2:12 PM, thebrianschott schott.br...@gmail.com wrote:
Is there an easy way to recognize a part of a user's input as a url
and make it into a clickable link for other users to click on in a log
application? I am using python and django.
Thank
django urlize
http://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#urlize
django filters can clean and markup for example a variable text
{{text|striptags|urlize|autolinebreaks}}
there are exceptions though that won't work (com is a spanish word
perhaps not part of a url and