Re: blank=True on Char/TextFields

2009-04-07 Thread Magus
t fix http://code.djangoproject.com/ticket/9590 Magus On Feb 13, 2:31 pm, Lee Braiden wrote: > 2009/2/13 Praveen : > > > Avoid usingnullon string-based fields such as CharField and > > TextField unless you have an excellent reason. > > What exactly is the reasoning behind this advice

Re: Rolling my own basic authentication?

2006-08-28 Thread magus
Sean Perry wrote: > magus wrote: > > Yes, but "cheapness" is only one of my concerns. I have two bigger > > concerns: > > > > 1. By limiting the external dependencies (i.e. the number of django > > modules I use) I will lower the risk of being hi

Re: Rolling my own basic authentication?

2006-08-25 Thread magus
Commenting on my own posts here :-) magus wrote: > Sean Perry wrote: > > magus wrote: > > > I'd like to roll my own basic authentication for a web service, i.e. I > > > don't want to use the contrib.auth module. If possible I'd like to > > > a

Re: Extracting arguments to web service methods

2006-08-25 Thread magus
Ivan Sagalaev wrote: > magus wrote: > > Well, the auth module _requires_ the session stuff. Which in this case > > is overkill. All I really need is to return a 401 and get a basic > > authentication. > > I've posted some time ago on this list a simple middlewar

Re: Rolling my own basic authentication?

2006-08-25 Thread magus
Sean Perry wrote: > magus wrote: > > I'd like to roll my own basic authentication for a web service, i.e. I > > don't want to use the contrib.auth module. If possible I'd like to > > avoid relying on the server for this. Anyone who can offer some > > p

Rolling my own basic authentication?

2006-08-25 Thread magus
I'd like to roll my own basic authentication for a web service, i.e. I don't want to use the contrib.auth module. If possible I'd like to avoid relying on the server for this. Anyone who can offer some pointers on how to raise a 401 on a request that doesn't contain the Authentication: header? Th

Re: Extracting arguments to web service methods

2006-08-25 Thread magus
Jacob Kaplan-Moss wrote: [..] > > Another thing I'm wondering here is relating to authentication. > > `django.contrib.auth` relies on sessions, which is good for sites but > > is unnecessary for web services (again I'm looking at del.icio.us as a > > good example). > > The session stuff is only a

Extracting arguments to web service methods

2006-08-24 Thread magus
>From what I can see django would be a very convenient tool to build webservices similar to the del.icio.us API (i.e. I'm not interested in SOAP, XML-RPC, JSON, etc). The only way I've found of extracting arguments is to use request.GET like this request.GET['arg1'] (Optional arguments (i.e.