Re: admin interface

2008-11-29 Thread Thomas Kerpe
Don't forget to add a __unicode__ method to your models. //Thomas 2008/11/29 mobil <[EMAIL PROTECTED]> > > How to make the admin interface display a list of table columns > instead of just a Users object > > Select users to change > >* Add users > > Users > Users object > Users object >

Re: can't pass a parameter to my named url using {% url %} tag in template

2008-11-27 Thread Thomas Kerpe
Why don't write {% url delete-quote-page object.id %} ? HTH //Thomas On Nov 27, 2:19 pm, dash86no <[EMAIL PROTECTED]> wrote: > I'm trying to use a URL tag as following: > > delete > > my named url is here: > > url(r'^quote/delete/(?P\d+)/$', >

Re: Pagination of non-Django database

2008-11-26 Thread Thomas Kerpe
Am 26.11.2008 13:19 Uhr, huw_at1 schrieb: > A small part of my framework queries a non-Django db due to it being a > legacy db with primary keys already in use. My question is is there a > recognised way of applying pagination to non-Django db objects such > that I can paginate the sql select

Re: Injecting stuff to an existing list?

2008-11-25 Thread Thomas Kerpe
I think David meant a method in the model not a field so nothing is stored. //Thomas 2008/11/25 Steve Holden <[EMAIL PROTECTED]> > > David Zhou wrote: > > On Tue, Nov 25, 2008 at 3:55 AM, sajal <[EMAIL PROTECTED]> wrote: > [...] > > > > Personally, if the current age of a person is something

Re: How to deal with NTLM authentication

2008-11-16 Thread Thomas Kerpe
Am 16.11.2008 21:51 Uhr, Lee Connell schrieb: > ... What I want to do is allow the user of my django app to login just > once, then if the user wishes to access the "embeded site" and > recieves the WWW-Authentication : NTLM response, I can just pass the > user and pass so the user is allowed

Re: simple python question

2008-08-21 Thread Thomas Kerpe
results.append({'URL': '/feed/%s/show/%s' % (item.rss, item.rssfeed),}) On Thu, Aug 21, 2008 at 23:29, Bobby Roberts <[EMAIL PROTECTED]> wrote: > > hi. > > I'm trying to figure out how to dynamically replace things in a string > as follows: > > >results.append({'URL': '/feed/%s/show/%s'

Re: Model Options for Admin Site

2008-04-21 Thread Thomas Kerpe
r than just one column ? For instance, say > I have a 'sales table' and I want to list the sales number as the > first column, then the customer name and so forth. Do I need to edit > the template for this? > > - james > > On Apr 21, 4:58 pm, Thomas Kerpe <[EMAIL PROTECTED]>

Re: Model Options for Admin Site

2008-04-21 Thread Thomas Kerpe
Hi James define a __str__ or better __unicode__ method within your model which returns the correct string. i.e. def __unicode__(self): return self.name //Thomas Am 21.04.2008 um 23:55 schrieb jwwest: > > Hey all, > > I'm not sure what I'm doing wrong in my models file, but when I add

Re: Django Installation Questions on Ubuntu

2008-04-21 Thread Thomas Kerpe
> Hi khayman, Replace: SetEnv DJANGO_SETTINGS_MODULE settings.py With: SetEnv DJANGO_SETTINGS_MODULE projectname.settings //Thomas Am 21.04.2008 um 23:06 schrieb khayman: > > I have installed Apache, modpython and Django via apt-get. Apache and > modpython are working (I can serve normal

Re: Serving binary files "through" django

2008-04-07 Thread Thomas Kerpe
Hi Eric Am 06.04.2008 um 06:49 schrieb Eric Abrahamsen: > > Guess I'll have to serve the files from django's apache, not my other > media server, but it seems like this will do it. That depends on your setup. You can also use a X-Sendfile or X-Accel-Redirect capable Server as your

Re: Serving binary files "through" django

2008-04-05 Thread Thomas Kerpe
you are using Apache or lighttpd as a frontend-proxy you can use a similar aproach with: X-Sendfile. Or you use Amazon s3 etc... Greets, Thomas Kerpe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"