RE: Newbie Help with Models and Views

2008-12-22 Thread Wayper, Paul
> .filter returns a list of the items that match the query. So > you're trying to stringify a list. That's where the '[' and > ']' are coming from. I should have mentioned that the get method (e.g. Post.objects.get(id = 1)) will return a single object, or raise a DoesNotExist error. You may

RE: Newbie Help with Models and Views

2008-12-22 Thread Wayper, Paul
> From: Mike Albert > Subject: Newbie Help with Models and Views > > I have a couple test rows of data in my database. From the > interactive shell (manage.py shell), I can return data correctly with > Post.objects.filter(id=1). You'll notice that that data is coming back as ['row 1']. It's i

RE: Language code prefix in url

2008-12-21 Thread Wayper, Paul
> From: Tirta K. Untario > Subject: Language code prefix in url > > /en/my_app/something_here/1/2/3/4/ > /de/my_app/something_here/1/2/3/4/ > /fr/my_app/something_here/1/2/3/4/ My suggestion would be to look at e.g. Apache's URL rewriting rules. Take those URLs and produce /my_app/something_here

RE: A Top-Level Django Index for the root URL

2008-12-21 Thread Wayper, Paul
From: Ben Pritchard Subject: A Top-Level Django Index for the root URL The intention is that this page will list all my of sandbox projects. So at the moment it just links to http://localhost:8000/polls but (a) coding the link seems like a HTML solution rather

RE: how to add more params in url

2008-12-18 Thread Wayper, Paul
> From: mono > Sent: Thursday, 18 December 2008 22:10 > To: Django users > Subject: Re: how to add more params in url > > > I don't know whether it is a good answer because only two > page links is here and the aim of is_extend flag is to show > entire or part of columns. > > so I could not t

RE: how to add more params in url

2008-12-17 Thread Wayper, Paul
> -Original Message- > From: django-users@googlegroups.com > [mailto:django-us...@googlegroups.com] On Behalf Of mono > Sent: Thursday, 18 December 2008 15:14 > To: Django users > Subject: how to add more params in url > > > eg. > > in my list.html > > {%if is_extend %} > extend >