Thursday, August 30, 2012

coding urls in templates

Quick question: I changed my urls.py so I can run my project in a subdirectory and I broke all the urls in my templates.  Should I be using {% url path.to.some_view v1 v2 %} in all my templates instead of hard coding the path?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/SV-wL8jMdCUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment