Re: admin url name

2010-02-13 Thread Umapathy S
On Sat, Feb 13, 2010 at 4:43 AM, Karen Tracey wrote: > On Fri, Feb 12, 2010 at 4:34 PM, Umapathy S wrote: > I don't know how to get this working on the level of code you have. To do > it with 1.1 or higher, you'd want to reverse admin:index, as documented

admin url name

2010-02-12 Thread Umapathy S
Hello, I am looking for the admin site url name to be included as a link in a home page template. I looked at contrib/admin/sites.py AdminSite sets self.name which is then passed to # Admin-site-wide views. urlpatterns = patterns('', url(r'^$', wrap(se

Re: {% url in templates

2009-10-29 Thread Umapathy S
On Thu, Oct 29, 2009 at 1:40 PM, Alex Robbins wrote: > > Maybe it is just me, but I feel like writing out the view functions > like that is a beating. I just name[1] all the urls. Then the url tag > is easy. I just do things like {% url home-page %} or {% url blog- > index %}. If you set up a gen

Re: {% url in templates

2009-10-28 Thread Umapathy S
On Wed, Oct 28, 2009 at 8:03 PM, Gabriel . wrote: > > On Wed, Oct 28, 2009 at 4:16 PM, Umapathy S wrote: > > view_xyz is the view function. No arguments. > > > > exps is the application. pams is project. > > > > pams/urls.py > > > > urlpattern

Re: {% url in templates

2009-10-28 Thread Umapathy S
tion which gets some data through POST and prints out a table. Thanks Umapathy On Wed, Oct 28, 2009 at 7:05 PM, Gabriel . wrote: > > On Wed, Oct 28, 2009 at 3:55 PM, Umapathy S wrote: > > > > Hello there, > > > > I am developing a page which has a left side menu.

{% url in templates

2009-10-28 Thread Umapathy S
Hello there, I am developing a page which has a left side menu. This menu is a seperate html and gets includes in the base.html template. To make it less vulnerable to url changes, I am trying to implement the {% url %} in lhsmenu.html view {% url exps.view_xyz as viewxyzurl

Re: first newbie question

2009-01-09 Thread Umapathy S
I usually do def __unicode__(self): return "%d" % self.question_number On Fri, Jan 9, 2009 at 2:42 PM, Eric Abrahamsen wrote: > > > On Jan 9, 2009, at 10:19 PM, _Sebastian_ wrote: > > > > > Hi all, > > > > I've been following the tutorial > http://docs.djangoproject.com/en/dev/intro/tut