Peter Hoffmann
About
Archive
Talks
RSS Feed
Peter Hoffmann
Follow
Python Developer, Conference Speaker, Mountaineer
Django Print url of view without hardcoding the url
September 6, 2008
stackoverflow
python
This my Answer to the stackoverflow question:
Django: Print url of view without hardcoding the url
:
If you use
named url patterns
you can do the follwing in your template
{% url create_object %}