Thursday, August 30, 2012

Re: coding urls in templates

could you post the directory structure and your urls.py file. Thanks.

On Fri, Aug 31, 2012 at 11:00 AM, Mike <mike.thon@gmail.com> wrote:
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.



--
Thanks & Regards
----------------------------

Amyth [Admin - Techstricks]
Email - aroras.official@gmail.com, admin@techstricks.com
Twitter - @a_myth_________
http://techstricks.com/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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