Is there a way to automatically detect links in Django templates?

I am passing in some lists from a view into a django template. In this template, it will extract strings from these lists in a sequence of for loops, and then print out each of these strings. Some of these strings may have URLs in them, like This is some string. http://google.com Right now when these strings are printed they are just printed as text. Is there a simple way to tell the django template to autolink these URLs and show these as links instead of plain text?

Thanks!

Answers


Try with urlize template tag.


Need Your Help

Flash Player 11 project doesn't run in standalone player

flash player

Flash Player 11 project doesn't run in standalone player, is it posible to do this?

Does Capybara require JRuby?

ruby-on-rails cucumber bdd capybara

I'm building a Rails 3 app. I'm trying to learn Cucumber with Capybara.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.