Re: SERVER_NAME vs HTTP_HOST

2007-09-06 Thread Graham Dumpleton
On Sep 7, 1:23 pm, Siddhi <[EMAIL PROTECTED]> wrote: > On Sep 5, 3:22 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > > > If you are using WSGI interface to Django, then all you need to do is > > wrap Django in a simple WSGI application wrapper that overrides > > SERVER_NAME and sets it to

Re: SERVER_NAME vs HTTP_HOST

2007-09-06 Thread Siddhi
On Sep 5, 3:22 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > If you are using WSGI interface to Django, then all you need to do is > wrap Django in a simple WSGI application wrapper that overrides > SERVER_NAME and sets it to what you want. For example: > Hi Graham, Thanks, thats one good

Re: Reason why SlugField doesn't subclass CharField?

2007-09-06 Thread Joseph Kocherhans
On 9/6/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 9/6/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > Is there any particular reason that django.db.fields.SlugField doesn't > > inherit from CharField? > > I can't think of any reason why it doesn't subclass CharField -- go for it.

Re: Reason why SlugField doesn't subclass CharField?

2007-09-06 Thread Adrian Holovaty
On 9/6/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > Is there any particular reason that django.db.fields.SlugField doesn't > inherit from CharField? I can't think of any reason why it doesn't subclass CharField -- go for it. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~

Reason why SlugField doesn't subclass CharField?

2007-09-06 Thread Joseph Kocherhans
Is there any particular reason that django.db.fields.SlugField doesn't inherit from CharField? I've come up with 2 possible fixes for prepopulated_fields in newforms-admin. 1. copy the formfield method for CharField over to SlugField or 2. make SlugField inherit from CharField T

Re: Time for a new release?

2007-09-06 Thread Michael Scott
Perhaps it would be a good idea to add some kind of time indication to the segments in the docs - there's a similar system in place for the djangobook where by each block/paragraph is commented. Perhaps a similar system could be implemented for the django docs? On Aug 30, 3:32 am, "Amit Upadhyay"

Re: How to deal with backend-specific parameter types? [Was: django on jython (new version)?]

2007-09-06 Thread David Elias
On Sep 6, 8:06 pm, "Leo Soto M." <[EMAIL PROTECTED]> wrote: > Am I on the right track? Do you people have other ideas? > Some backends provide some type_cast functions that you can attach to some data types, on a quick search for zxJDBC I found in the home page "Datatype mapping callbacks through

Re: Let's schedule a Django sprint

2007-09-06 Thread Russell Keith-Magee
On 9/6/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > It's about time we scheduled an official Django sprint. We've got a > bunch of features that are almost done but haven't yet been > committed/merged -- including newforms-admin, ORM aggregate support, Side note - ORM aggregate support was

Re: Let's schedule a Django sprint

2007-09-06 Thread Andy Gayton
Adrian Holovaty wrote: > On 9/5/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: >> It's about time we scheduled an official Django sprint. > > I've contacted Brian Fitzpatrick at Google, and he said that he could > try to get Google to host it. Google recently hosted a Python 3000 > sprint in Chic

Re: Let's schedule a Django sprint

2007-09-06 Thread Niels Sandholt Busch
I'm in Copenhagen, and if you do host an event, I will show up. Got some python experience, but a Django noob. \Niels On Sep 6, 4:31 pm, Nis Jørgensen <[EMAIL PROTECTED]> wrote: > Adrian Holovaty skrev:> It's about time we scheduled an official Django > sprint. We've got a > > bunch of features

Re: Django Updates Not Forthcoming this weekend!

2007-09-06 Thread Clint Ecker
Thanks guys! I actually work two or three blocks from Google here in Chicago. I might be able to pop over for a few hours to help with anything (if possible). Clint On 9/6/07, James Bennett <[EMAIL PROTECTED]> wrote: > > On 9/6/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > No problem that

Re: Django Updates Not Forthcoming this weekend!

2007-09-06 Thread James Bennett
On 9/6/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > No problem that we didn't have an update this past week. As for next > weekend, I'll be really busy myself, but I might be able to do a quick > roundup. If it'll be of any help, I'll already be keeping an eye on stuff pretty closely during t

How to deal with backend-specific parameter types? [Was: django on jython (new version)?]

2007-09-06 Thread Leo Soto M.
On 9/5/07, Marty Alchin <[EMAIL PROTECTED]> wrote: > > That is excellent news! I'm especially excited to hear about the > inclusion of pop() on PyStringMap, since that would indeed solve a few > metaclass issues with Django (and perhaps others). It's starting to > sound like with a decent recent J

Re: Django Updates Not Forthcoming this weekend!

2007-09-06 Thread Adrian Holovaty
On 9/6/07, Clint Ecker <[EMAIL PROTECTED]> wrote: > I'm just writing this because I know there is a big movement around > the Sept 14 Sprint and I want to make sure someone posts about it on > the blog (if necessary, it may not be!). Well, I posted a thing to the Django blog before I saw this no

Re: Django Updates Not Forthcoming this weekend!

2007-09-06 Thread Jacob Kaplan-Moss
On 9/6/07, Clint Ecker <[EMAIL PROTECTED]> wrote: > I'm just writing this because I know there is a big movement around > the Sept 14 Sprint and I want to make sure someone posts about it on > the blog (if necessary, it may not be!). I think keeping it on django-dev is probably good enough; most

Re: django on jython (new version)?

2007-09-06 Thread Frank Wierzbicki
On 9/5/07, Marty Alchin <[EMAIL PROTECTED]> wrote: > > That is excellent news! I'm especially excited to hear about the > inclusion of pop() on PyStringMap, since that would indeed solve a few > metaclass issues with Django (and perhaps others). PyStringMap.pop() has landed in jython's trunk. > I

Re: GenericForeignKey and GenericRelation, possible bug?

2007-09-06 Thread David Larlet
2007/9/6, David Larlet <[EMAIL PROTECTED]>: > Hi all, > > Before submitting a bug I'd like to be sure that it hadn't been done > intentionally, here is the issue: > > I had a model with two GenericForeignKeys which where defined like that: > > class Foo(models.Model): > item = generic.GenericF

Re: Let's schedule a Django sprint

2007-09-06 Thread Gary Wilson
On Sep 5, 3:32 pm, "Adrian Holovaty" <[EMAIL PROTECTED]> wrote: > I propose Friday, September 14. Some reasoning: Count me in. Maybe even some spillover into the weekend while at the Texas Python Regional Unconference [1]. Gary [1] http://pycamp.python.org/Texas/HomePage --~--~-~--~-

GenericForeignKey and GenericRelation, possible bug?

2007-09-06 Thread David Larlet
Hi all, Before submitting a bug I'd like to be sure that it hadn't been done intentionally, here is the issue: I had a model with two GenericForeignKeys which where defined like that: class Foo(models.Model): item = generic.GenericForeignKey(ct_field="item_content_type", fk_field="item_obje

Re: Let's schedule a Django sprint

2007-09-06 Thread Andrews Medina
> > That's great. :-) I'll be there most of the time, Central European timezone. > Hi. I'm brazillian and I,ll be participating of the django spring. -- Andrews Medina http://pyman.blogspot.com/ www.andrewsmedina.com.br --~--~-~--~~~---~--~~ You received this m

Re: Let's schedule a Django sprint

2007-09-06 Thread Nis Jørgensen
Adrian Holovaty skrev: > It's about time we scheduled an official Django sprint. We've got a > bunch of features that are almost done but haven't yet been > committed/merged -- including newforms-admin, ORM aggregate support, > multi-DB support and GeoDjango. Plus, we've got almost 1,000 open > ti

Django Updates Not Forthcoming this weekend!

2007-09-06 Thread Clint Ecker
Adrian, people w/posting access on the blog, et. al.: As is pretty obvious, I didn't post a Django roundup last weekend due to the fact that I was in the middle of nowhere Kansas. And I won't be able to do so again this weekend given that I will be moving apartments. I'm just writing this becau

Re: Let's schedule a Django sprint

2007-09-06 Thread Marc Garcia
Great idea, count me in! for some testing/newbie stuff, so I just started hacking django few weeks ago. On Sep 6, 3:09 pm, Nick <[EMAIL PROTECTED]> wrote: > On Sep 6, 12:51 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > like that. Things that people who haven't done much before can do

Re: Let's schedule a Django sprint

2007-09-06 Thread Nick
On Sep 6, 12:51 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > like that. Things that people who haven't done much before can do in > small steps and contribute useful stuff. Given that we've had a few > people interested who have admitted to just starting out, we can make it > easier for

Re: syncdb not running custom sql in a transaction

2007-09-06 Thread Russell Keith-Magee
On 9/6/07, Paul Davis <[EMAIL PROTECTED]> wrote: > I think the biggest issue is the fact that: > $ python manage.py sqlcustom appname > gives sql thats in a transaction. It was confusing to have the two > different behaviors. Ah - interesting. That should probably be raised as a bug (with a sugg

Re: syncdb not running custom sql in a transaction

2007-09-06 Thread Paul Davis
On 9/5/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 9/6/07, Paul Davis <[EMAIL PROTECTED]> wrote: > > > > I'm having a bit of a problem using the appname/sql/model.sql custom > > sql files. > ... > > But running: > > $ python manage.py sqlcustom root | psql eureka > > > > Completes wi

Re: Let's schedule a Django sprint

2007-09-06 Thread Marty Alchin
On 9/6/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Sprints are often a bit ad-hoc in terms of allowing people to work on > what they want. Adrian posted a few ideas in his original mail. Okay, that's what I was originally expecting. > I was actually referring to writing up some things li

Re: adding raw flag parameter to post_save & pre_save signals

2007-09-06 Thread Russell Keith-Magee
On 9/6/07, Graham Carlyle <[EMAIL PROTECTED]> wrote: > > Hello, > > No-ones responded to my initial email. So is this the wrong place to > raise this request? Should I have posted to django-users? Should I raise > a ticket for this? Apologies - we're not ignoring you - we're just busy. This is t

Re: Let's schedule a Django sprint

2007-09-06 Thread Malcolm Tredinnick
On Thu, 2007-09-06 at 07:35 -0400, Marty Alchin wrote: > On 9/6/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > Definitely. Before next Friday we'll try to get some ideas up on the > > wiki, too. > > Does this mean there will be some sort of agenda planned for the > things we hope to knock

Re: adding raw flag parameter to post_save & pre_save signals

2007-09-06 Thread Graham Carlyle
Hello, No-ones responded to my initial email. So is this the wrong place to raise this request? Should I have posted to django-users? Should I raise a ticket for this? thanks, Graham On Tue, 2007-09-04 at 15:25 +0100, Graham Carlyle wrote: > Any chance the pre_save & post_save signals sent by

Re: Let's schedule a Django sprint

2007-09-06 Thread Marty Alchin
On 9/6/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Definitely. Before next Friday we'll try to get some ideas up on the > wiki, too. Does this mean there will be some sort of agenda planned for the things we hope to knock out? At least the major stuff anyway? -Gul --~--~-~--~---

Re: Let's schedule a Django sprint

2007-09-06 Thread Malcolm Tredinnick
On Thu, 2007-09-06 at 21:29 +1000, Malcolm Tredinnick wrote: [...] > I've just created a wiki page for people who want to write down that > they're going to be able to attend. > > Everybody else should feel free to add themselves, of course. Doh! The wiki page is http://code.djangoproject.com/wi

Re: Let's schedule a Django sprint

2007-09-06 Thread Malcolm Tredinnick
On Thu, 2007-09-06 at 16:44 +0530, Allagappan M wrote: > Hi, > On 9/6/07, vivek <[EMAIL PROTECTED]> wrote: > > I would like to join in although I am new to django and python. I am > > hoping with around 1000 open tickets you can still use some noob hand. > Do count me in.I'm familiar with both dja

Re: Let's schedule a Django sprint

2007-09-06 Thread Allagappan M
Hi, On 9/6/07, vivek <[EMAIL PROTECTED]> wrote: > I would like to join in although I am new to django and python. I am > hoping with around 1000 open tickets you can still use some noob hand. Do count me in.I'm familiar with both django and python. For noobs, will there be people who can allocate

Re: Let's schedule a Django sprint

2007-09-06 Thread Marty Alchin
On 9/5/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > Yes -- I apologize for not explaining things. Anybody, all over the > world, can participate. Excellent. I already have the day off from work, so I just have to decide whether I'd rather be doing a Django sprint or working at a garage sale.

Re: Let's schedule a Django sprint

2007-09-06 Thread David Reynolds
On 5 Sep 2007, at 9:32 pm, Adrian Holovaty wrote: > I propose Friday, September 14. Some reasoning: I'm not wholly familiar with how sprints work, but if there's a need for testers, I can be around a bit on Friday and at the weekend. Thanks, David -- David Reynolds [EMAIL PROTECTED] --

Re: Let's schedule a Django sprint

2007-09-06 Thread Russell Keith-Magee
On 9/6/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > I propose Friday, September 14. Some reasoning: I've been given the OK from my boss, so I'm in. I'll be there from around 0800hrs AWST (hrs 14 Sept UTC). I have theater tickets for the evening, so I won't be around from about 1800-220