Re: Benevolent Dicta^H^H^H Designer for Life

2011-03-22 Thread Wim Feijen
Hi Idan, Those are two great topics, congratulations to you and to us :) and good luck! Wim -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this

Re: ANN: Django 1.3 release candidate available

2011-03-22 Thread Wim Feijen
Great work! As the final release has not yet been announced, did something go wrong? Could you please post a small status update? Thanks, Wim On Mar 4, 7:00 am, James Bennett wrote: > Tonight we're proud to announce the first release candidate for Django > 1.3; if all goes well, the final rel

Re: ANN: Django 1.3 release candidate available

2011-03-22 Thread Russell Keith-Magee
On Tue, Mar 22, 2011 at 6:23 PM, Wim Feijen wrote: > Great work! > > As the final release has not yet been announced, did something go > wrong? > > Could you please post a small status update? My apologies -- we haven't been very effective in communicating the delays here. We've had a couple of

Re: secret key from file...

2011-03-22 Thread Kristaps Kūlis
I personally would greatly appreciate update in docs to show "best way" to handle per enviroment settings / sensitive settings, as now there is many ways :) Consider when one has his local development enviroment with locmem cache and sqlite3 db, and staging server with MySQL / memcache and produc

Re: secret key from file...

2011-03-22 Thread Luke Plant
On 22/03/11 12:44, Kristaps Kūlis wrote: > I personally would greatly appreciate update in docs to show "best > way" to handle per enviroment settings / sensitive settings, as now > there is many ways :) > Consider when one has his local development enviroment with locmem > cache and sqlite3 db,

Re: Benevolent Dicta^H^H^H Designer for Life

2011-03-22 Thread Raphael Passini Diniz
Hi Idan, Good luck! I'll expecting some exciting news! :D 2011/3/22 Wim Feijen > Hi Idan, > > Those are two great topics, congratulations to you and to us :) and > good luck! > > Wim > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group.

Re: Django urls in JavaScript

2011-03-22 Thread Ayaz Ahmed Khan
On Thu, Mar 17, 2011 at 7:44 PM, Marco Louro wrote: > I don't really know how to approach this issue the best way, so I'm > just going to be direct, I'd love to see Django provide support for > django.core.urlresolvers.reverse (at least) on the client (in > JavaScript). > > [...] > > So my questio

type error couldn't able to point it

2011-03-22 Thread NavaTux
This is my django snippet to calculate custome stmts but it displays the error from optionsAlpha.models import MarketUpdate from datetime import datetime from django.db.models import Q def stock_up(ticker, test_start_date): #stock_value=0 mu1 = MarketUpdate.objects.filter(Q(stock_symbol=ticker) &

Re: type error couldn't able to point it

2011-03-22 Thread Jirka Vejrazka
Hi there, I have not used this myself, but believe that "Q objects" don't support & operator as you use it. So it's really a Python error, not Django error. FYI, you need Q objects only to provide "OR" functionality. For "AND" functionality, you only need: mu1 = MarketUpdate.objects.filter(stoc

Re: type error couldn't able to point it

2011-03-22 Thread Jirka Vejrazka
2 more comments ( I just noticed ): - these questions should be sent to django-users, not django-developers - why go through all stock values to find the best one in the loop (you could use agregates for that) and then only return count? Cheers Jirka -- You received this message becau

Enhanced auth.User

2011-03-22 Thread Rohan Jain
These are some auth settings and models I propose to account for the generally raised questions for auth.User flexibility. Settings: - AUTH_USER_EMAIL_UNIQUE If the email should be unique for users. It is a rare case when a website would have users sharing emails. It is more likely oth

Re: [GSoC Proposal] Customizable Serialization

2011-03-22 Thread Andrew Godwin
On 17/03/11 07:47, Vivek Narayanan wrote: > Hi, > > This is my proposal for the customizable serialization idea: Hi Vivek - sorry about the long reply-wait on this! My initial thoughts are below. > The user can define methods beginning with “meta_” to add metadata > about each field. And function

Re: State of X-Sendfile support?

2011-03-22 Thread Paul McMillan
It's worth pointing out that manage.py runserver isn't likely to ever support serving those files even if the header arrives in core. It's explicitly not appropriate for any kind of production use, fallback or otherwise. If you really need support for your development work (and checking the headers

Re: secret key from file...

2011-03-22 Thread Paul McMillan
I would be in support of a manage.py command to change the secret key, just as a convenience. I'd be happy to implement it. Matthew Roy said: > If I understand > how it works the compromise of the SECRET_KEY alone doesn't put you in > serious hot water unless the attacker can also intercept traffi

Re: secret key from file...

2011-03-22 Thread Ian Kelly
On Tue, Mar 22, 2011 at 6:44 AM, Kristaps Kūlis wrote: >  I personally would greatly appreciate update in docs to show "best > way" to handle per enviroment settings / sensitive settings, as now > there is many ways :) >  Consider when one has his local development enviroment with locmem > cache a

Re: secret key from file...

2011-03-22 Thread Matt Robenolt
Why not just do an import for your custom settings? try: from site_settings import * except ImportError: pass On Mar 22, 2011, at 5:51 PM, Ian Kelly wrote: > On Tue, Mar 22, 2011 at 6:44 AM, Kristaps Kūlis > wrote: >> I personally would greatly appreciate update in docs to sho

Re: secret key from file...

2011-03-22 Thread Ian Kelly
On Tue, Mar 22, 2011 at 4:49 PM, Matt Robenolt wrote: > Why not just do an import for your custom settings? > > try: >        from site_settings import * > except ImportError: >        pass No particularly compelling reason that I know of, the import machinery is just unnecessary in this case. T

Re: secret key from file...

2011-03-22 Thread Matt Robenolt
That's just interesting. I've never seen the use of `execfile()` before. We use a devsettings.py and use it to override an individual server or local settings, and then on the live/deployed server, no devsettings.py is even included. Hence the try...except wrapped around it. It's a nice little p

Re: secret key from file...

2011-03-22 Thread Carl Meyer
On 03/22/2011 07:05 PM, Ian Kelly wrote: > On Tue, Mar 22, 2011 at 4:49 PM, Matt Robenolt > wrote: >> Why not just do an import for your custom settings? >> >> try: >>from site_settings import * >> except ImportError: >>pass > > No particularly compelling reason that I know of,

Re: secret key from file...

2011-03-22 Thread Chris Church
I've used the execfile approach in my settings.py like so: # Include any local settings that override the defaults. try: execfile('local_settings.py') # Hack so that the autoreload will detect changes to local_settings.py. class dummymodule(str): __file__ = property(lambda self

Re: secret key from file...

2011-03-22 Thread Ian Kelly
On Tue, Mar 22, 2011 at 5:17 PM, Carl Meyer wrote: > Interesting. I would have assumed that the reason is so that code in > site_settings.py has access to the previously defined values in the main > settings.py, and can actually modify them (i.e. append to > MIDDLEWARE_CLASSES or whatnot). With an

Re: Enhanced auth.User

2011-03-22 Thread Russell Keith-Magee
On Wed, Mar 23, 2011 at 4:32 AM, Rohan Jain wrote: > These are some auth settings and models I propose to account for the > generally > raised questions for auth.User flexibility. Two quick points: Firstly -- the fact that you've given some biographical detail at the bottom, and that this biogra

Re: Enhanced auth.User

2011-03-22 Thread Gabriel Hurley
I would further add that the goal of any refactor in this area is not to add a wishlist of enhancements to the existing User model (though that may happen in tandem), but to truly make the framework extensible/agnostic in a way which it currently is not. All the best, - Gabriel -- You re

Re: Enhanced auth.User

2011-03-22 Thread crodjer
On Wednesday, March 23, 2011 5:10:36 AM UTC+5:30, Russell Keith-Magee wrote: > > On Wed, Mar 23, 2011 at 4:32 AM, Rohan Jain wrote: > > These are some auth settings and models I propose to account for the > > generally > > raised questions for auth.User flexibility. > > Two quick points: > > First

Re: Enhanced auth.User

2011-03-22 Thread Russell Keith-Magee
On Wed, Mar 23, 2011 at 10:21 AM, crodjer wrote: > On Wednesday, March 23, 2011 5:10:36 AM UTC+5:30, Russell Keith-Magee wrote: >> >> On Wed, Mar 23, 2011 at 4:32 AM, Rohan Jain wrote: >> > These are some auth settings and models I propose to account for the >> > generally >> > raised questions f

Re: Customizable Serialization

2011-03-22 Thread Vivek Narayanan
> I also haven't seen any proposals or examples of how I'd use the API as > an end user - are people going to be able to register serialisers to > models (since they're apparently tied to specific models anyway)? There will be different types of serializers like JSONSerializer, YAMLSerializer, XML

[GSoC] Customizable Serialization Proposal

2011-03-22 Thread DaNmarner
First of all: my native language is not English, so I apologize for any potential natural language error (or any error at all) below. After (briefly) reading through the current implementaion as well as the "Issues to consider" section in the GSoC2011 page on wiki, my initial observation is that t

ANN: Django 1.3 released

2011-03-22 Thread James Bennett
It's here! Django 1.3 has been officially released. Blog post here: http://www.djangoproject.com/weblog/2011/mar/23/13/ Release notes here: http://docs.djangoproject.com/en/dev/releases/1.3/ Download here: http://www.djangoproject.com/download/ -- "Bureaucrat Conrad, you are technically correc

Re: ANN: Django 1.3 released

2011-03-22 Thread Gert Van Gool
Congratualations to all involved! -- Gert Mobile: +32 498725202 Twitter: @gvangool Web: http://gert.selentic.net On Wed, Mar 23, 2011 at 07:15, James Bennett wrote: > It's here! > > Django 1.3 has been officially released. > > Blog post here: http://www.djangoproject.com/weblog/2011/mar/23/13