Re: coding urls in templates

2012-08-31 Thread Michael Thon
Hi Amyth- That is exactly what I needed. Thanks. I'm now updating all my views. - Mike On Aug 31, 2012, at 8:44 AM, Amyth Arora wrote: > Hey Mike, > > I think i understand what you are trying to achieve now. You can basically > name your urls and then call the url template tag in the templ

Re: coding urls in templates

2012-08-30 Thread Amyth Arora
Hey Mike, I think i understand what you are trying to achieve now. You can basically name your urls and then call the url template tag in the templates with the url name as follows, this way you will not break any urls in your template if you simply move your app to a new location. Example: #zet

Re: coding urls in templates

2012-08-30 Thread Michael Thon
the root directlry of my domain is hosting wordpress, which I'm using to develop the landing pages: www.zetawrite.com (I know, it still needs a lot of work). The app itself will only be available to logged in users so I thought that the easiest way to deploy it would be to run it in a subdirecto

Re: coding urls in templates

2012-08-30 Thread Amyth Arora
could you post the directory structure and your urls.py file. Thanks. On Fri, Aug 31, 2012 at 11:00 AM, Mike 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 %}

coding urls in templates

2012-08-30 Thread Mike
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 Goog