Thank you both! Exactly what I need, both for now and moving forward.
On Apr 10, 12:59 pm, Colin Bean <ccb...@gmail.com> wrote: > Take a look at the reverse() function and the "url" template > tag:http://docs.djangoproject.com/en/dev/topics/http/urls/#reversehttp://docs.djangoproject.com/en/dev/ref/templates/builtins/#url > > The "url" tag is what you want to generate a link in your template > based on one of your URL patterns. > > Colin > > On Fri, Apr 10, 2009 at 11:50 AM, Anthony <alantho...@gmail.com> wrote: > > > Hi Everyone, > > > This is really basic and I tried looking up this question since it > > can't be a new one, but the closest thread I found was this one: > > > <a href="http://groups.google.com/group/django-users/browse_thread/ > > thread/d2524403e13fcd22/515358199feebc68?lnk=gst&q=url+home > > +page#515358199feebc68">Home page question thread</a> > > > I'm trying to set up my templates so that I have a link back to my > > home page. I've got the following URL conf set up so that it points > > to "http://www.mysite.com": > > > url(r'^$', myapp.views.home, name = "url-home") > > > Is there a way to de-reference "url-home" from within my templates so > > I don't have to hard code my home page? > > > Thanks! > > Anthony --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---