Re: admin reports wrong absolute url

2006-01-05 Thread Amit Upadhyay
On 1/5/06, Jason Davies <[EMAIL PROTECTED]> wrote: Amit Upadhyay wrote:[snip]> But when I open the objects "change" page in admin, and try to follow "View> on Site" link, it takes me to some http://localhost:6680/r/10/1/, which> 404s.You need to add the following to your urlconf:(r'^r/', include('

Re: OneToOne on users.User cause exception in admin

2006-01-05 Thread Amit Upadhyay
Hi,On 1/6/06, Dody Suria Wijaya <[EMAIL PROTECTED]> wrote: Temporary fix can be applied by passing list_select_related=TrueThis did fix the problem. Thanks a million! :-)Din't try the other permanent solution for lack of time, will try some other time and let you know. -- Amit UpadhyayBlog: http://

Re: i have problem in the upload image

2006-01-05 Thread limodou
2006/1/5, mary <[EMAIL PROTECTED]>: > > i am trying to make my image dynamic and this is waht i am doing > exactly > i write in my model full_image = meta.ImageField(upload_to = > os.path.join(os.environ['Grill23_HOME'], '/media/images'), null = True, > blank = True) > and i found that Django

Re: OneToOne on users.User cause exception in admin

2006-01-05 Thread Dody Suria Wijaya
Brant Harris wrote: I'm not really sure if this is known (is there a ticket?), but I'd bet that this problem will be cleared up after the magic removal branch goes trunk. Hopefully. This likely a little bug in contrib/admin/views/main.py. - If not specified by model, row selection list by

OpenID

2006-01-05 Thread Jonathan Daugherty
Greetings, Several weeks ago, I started working at JanRain, Inc., the folks behind the Python implementation of the OpenID protocol[1]. Of course, I'd like to push for OpenID integration of some kind into Django. It looks like some work has already been done: http://badpopcorn.com/2005/12/07

Re: OneToOne on users.User cause exception in admin

2006-01-05 Thread Brant Harris
I'm not really sure if this is known (is there a ticket?), but I'd bet that this problem will be cleared up after the magic removal branch goes trunk. On 1/5/06, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > Hi, > > There is an open bug: > http://code.djangoproject.com/ticket/930 which talks about >

Re: admin reports wrong absolute url

2006-01-05 Thread Adrian Holovaty
On 1/5/06, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > Is the trunk not stable, and should I be working with some older version? Jason had the right answer: You need to put the "/r/" handler in your URLconf. But, for the record, trunk is always intended to be stable. We make unstable changes in br

Re: subdomain specific settings file - new idea

2006-01-05 Thread Daniel Poelzleithner
Amit Upadhyay wrote: > Hi, > > Wish you all a very happy and fruitful new year! > > Djando URL resolution causes some problem with applications hosted in > different subdomains. Consider www.example.com > and blog.example.com . Both of them are r

Re: admin reports wrong absolute url

2006-01-05 Thread Jason Davies
Amit Upadhyay wrote: [snip] > But when I open the objects "change" page in admin, and try to follow "View > on Site" link, it takes me to some http://localhost:6680/r/10/1/, which > 404s. You need to add the following to your urlconf: (r'^r/', include('django.conf.urls.shortcut')), Regards, J

admin reports wrong absolute url

2006-01-05 Thread Amit Upadhyay
Hi, I have a model whose absolute url is deifned:def get_absolute_url(self): return '/invitation/%i/' % self.idand it works fine on python prompt:>>> invitationcodes.get_list ()[0].get_absolute_url()'/invitation/1/'But when I open the objects "change" page in admin, and try to follow "View on Site"

i have problem in the upload image

2006-01-05 Thread mary
i am trying to make my image dynamic and this is waht i am doing exactly i write in my model full_image = meta.ImageField(upload_to = os.path.join(os.environ['Grill23_HOME'], '/media/images'), null = True, blank = True) and i found that Django creat a new folder /media/images/ and put the pict

OneToOne on users.User cause exception in admin

2006-01-05 Thread Amit Upadhyay
Hi,There is an open bug: http://code.djangoproject.com/ticket/930 which talks about problem with OneToOneField when used with users.User. My model is something like this: class UserDetail(meta.Model):    user = meta.OneToOneField(users.User)    telephone = meta.CharField(maxlength=15)    # we can a

Re: subdomain specific settings file

2006-01-05 Thread Amit Upadhyay
On 1/5/06, Brant Harris <[EMAIL PROTECTED]> wrote: Hrm, I think you are trying to simplify a less common task whilecomplicating the more common one.  It seems more useful to set updocumentation for this case in "Solving specific problems".  The more simple the default project/app layout is, the bet