How to save links in Django
- by xRobot
I have a simple Blog model with a TextFields.
What is the best way to save link ?
1) Saving link in the database in this form: http://www.example.com
and then using some filter in the template to trasform it in form:
<a rel="nofollow" href="http://www.example.com>http://www.example.com</a>
2) Saving link in the database directly in this form:
<a rel="nofollow" href="http://www.example.com>http://www.example.com</a>