Enhanced URL Resolver Match

2010-07-08 Thread Nowell Strite
When Django 1.1 was released URLs gained the ability to be nested with namespaces by adding "app_name" and "namespace" attributes to the include(...) functions within urls.py. The reverse(...) function was updated to allow you to specify namespace and current_app when resolving URLs, however, we

Re: Calling remote API

2010-07-08 Thread james_027
Sorry if I post on the wrong forums, as far as I know Django doesn't have a support for calling remote API, which makes me think more of a general python related thing. Thanks and I'll try in Django Forums. On Jul 9, 10:40 am, Russell Keith-Magee wrote: > On Fri, Jul

Re: Calling remote API

2010-07-08 Thread Shawn Milochik
Oops. Sorry for replying here. I didn't realize what list this was. Original poster: Please post to the django-users list. This one is for the development of Django itself, not users of Django Shawn -- You received this message because you are subscribed to the Google Groups "Django

Re: Calling remote API

2010-07-08 Thread Russell Keith-Magee
On Fri, Jul 9, 2010 at 10:36 AM, james_027 wrote: > hi all, > > It will be my first time to create django app that requires calling > remote API. aside from URLLIB2, any good library for this purpose? Questions like this should be directed to django-users. Django-developers

Re: Calling remote API

2010-07-08 Thread Shawn Milochik
What's wrong with urllib2.urlopen()? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to

Calling remote API

2010-07-08 Thread james_027
hi all, It will be my first time to create django app that requires calling remote API. aside from URLLIB2, any good library for this purpose? thanks, James -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send

Re: New admin feature: Delete and replace with existing object

2010-07-08 Thread Russell Keith-Magee
On Thu, Jul 8, 2010 at 11:19 PM, Ric wrote: > Hi Russ, nice to talk with u, > > i think that we can focus only on substitute feature, > to archive it we have 2 options: > > simply upgrade the current delete_view or make a new view, something > like >            

Re: MySQL index hints

2010-07-08 Thread Alex Gaynor
On Thu, Jul 8, 2010 at 3:51 PM, Simon Riggs wrote: > On Mon, 2010-07-05 at 00:59 -0700, Simon Litchfield wrote: >> > If you can come up with answers to these points, I might get >> > interested. 1 and 2 are fairly trivial; I can think of some obvious >> > answers for 3, but

Re: MySQL index hints

2010-07-08 Thread Simon Riggs
On Mon, 2010-07-05 at 00:59 -0700, Simon Litchfield wrote: > > If you can come up with answers to these points, I might get > > interested. 1 and 2 are fairly trivial; I can think of some obvious > > answers for 3, but 4 is the big problem, and will require some > serious > > research and

Re: Problem with randrange in django/middleware/csrf.py

2010-07-08 Thread Ramiro Morales
On Thu, Jul 8, 2010 at 4:09 PM, DanEE wrote: > The problems with randrange also occur when I run it directly from a > normal python prompt. > >[...] > So it doesn't seem to be a django problem, but it still is very > annoying. > >> If the host has not enough entropy,

Re: Problem with randrange in django/middleware/csrf.py

2010-07-08 Thread DanEE
The problems with randrange also occur when I run it directly from a normal python prompt. >>> random.randrange(0, 2<<63) instantly returns me the random numbers. whereas >>> random.SystemRandom().randrange(0, 2<<63) Takes forever to run. I cancelled the execution after about 10 minutes. As an

Re: Problem with randrange in django/middleware/csrf.py

2010-07-08 Thread stefanw
> >> By playing around in a python session it seems that the call to the > >> system randrange with random.SystemRandom().randrange(0, > >> _MAX_CSRF_KEY) never stops (or doesn't seem to stop in less than 30 > >> minutes) whereas a call to the "normal" randrange with randrange(0, > >>

Re: New admin feature: Delete and replace with existing object

2010-07-08 Thread Ric
i took this idea from wordpress. in wordpress when you delete an user instead of deleting all related posts you can choose to assign them to another user. we can extend this system on every model class, i think. whatch here, sorry wordpress is in italian (hope u understand a little)

Re: New admin feature: Delete and replace with existing object

2010-07-08 Thread Ric
Hi Russ, nice to talk with u, i think that we can focus only on substitute feature, to archive it we have 2 options: simply upgrade the current delete_view or make a new view, something like url(r'^(.+)/substitute/$', wrap(self.substitute_view),

Django Model Related Manager Enhancements

2010-07-08 Thread Nowell Strite
Recently I started working on a project (django-versions) to enable versioning of model data with Mercurial. In doing so, I came across the need to have access to more data about the relationships that Django Related Manager's create. For example, I wanted to be able to access the instance of the

Re: LOGIN_URL, LOGOUT_URL, LOGIN_REDIRECT_URL and SCRIPT_NAME.

2010-07-08 Thread Russell Keith-Magee
On Thu, Jul 8, 2010 at 7:11 AM, Graham Dumpleton wrote: > Can the following issue be revisited. > >  http://code.djangoproject.com/ticket/8906 > > Conversation about it at: > >  

Re: Ticket #5373

2010-07-08 Thread Russell Keith-Magee
On Thu, Jul 8, 2010 at 3:55 PM, Lachlan Musicman wrote: > Hola, > > I'm new to this dev thing, but I've done some work on ticket #5373 > > http://code.djangoproject.com/ticket/5373  Field label for a > ForeignKey not translated Thanks for pitching in! Hopefully I'll be able to

Re: Problem with randrange in django/middleware/csrf.py

2010-07-08 Thread Alex Gaynor
On Thu, Jul 8, 2010 at 8:39 AM, Russell Keith-Magee wrote: > On Thu, Jul 8, 2010 at 3:17 PM, DanEE wrote: >> Hello >> >> I posted this already in django-user. But because it is rather an >> internal django/python problem I will repost it here >>

Re: Problem with randrange in django/middleware/csrf.py

2010-07-08 Thread Russell Keith-Magee
On Thu, Jul 8, 2010 at 3:17 PM, DanEE wrote: > Hello > > I posted this already in django-user. But because it is rather an > internal django/python problem I will repost it here > > I experienced a strange behaviour with my django application when I > wanted to deploy and

Ticket #5373

2010-07-08 Thread Lachlan Musicman
Hola, I'm new to this dev thing, but I've done some work on ticket #5373 http://code.djangoproject.com/ticket/5373 Field label for a ForeignKey not translated There are two different patches fixing the same problem - I've no idea which is considered better. I don't like the late import on the

Problem with randrange in django/middleware/csrf.py

2010-07-08 Thread DanEE
Hello I posted this already in django-user. But because it is rather an internal django/python problem I will repost it here I experienced a strange behaviour with my django application when I wanted to deploy and test on my apache instance on my virtual server. I could successfully deploy my