a diff for the fastcgi server to make umask settable

2007-06-07 Thread Nic James Ferrier
flup provides the umask init field so that you can change the mask of a unix socket you're using to talk fast cgi. Django doesn't seem to pass this through so I wrote this trival patch. Someone might be interested. Apologies if this is not the right place. -- Nic Ferrier http://www.tapsellfe

Re: The going rate for Django-based web developers ...

2007-06-08 Thread Nic James Ferrier
Kenneth Gonsalves <[EMAIL PROTECTED]> writes: > On 09-Jun-07, at 12:20 AM, Kenneth Gonsalves wrote: > >>> Strong python, javascript, CSS, postgres, jquery (or alike), >>> debugging >>> and lots of general experience in software development. And when I >>> say >>> CSS, I don't mean graphic des

Re: The going rate for Django-based web developers ...

2007-06-18 Thread Nic James Ferrier
ZebZiggle <[EMAIL PROTECTED]> writes: > Strong python, javascript, CSS, postgres, jquery (or alike), debugging > and lots of general experience in software development. And when I say > CSS, I don't mean graphic design skills, but knowing how to take a > graphic design and translate it into CSS.

Re: lighttpd & fcgi

2007-06-24 Thread Nic James Ferrier
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > I've been reading this to get lightTPD and fastcgi configured on my > machine: > http://www.djangoproject.com/documentation/fastcgi/ > > There, it says to add this to your lighttpd.conf: > > server.document

Re: lighttpd & fcgi

2007-06-24 Thread Nic James Ferrier
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Yah, weird. > > Is there any advantage of using a socket or tcp? A unix socket might be _marginally_ faster. But TCP avoids ownership issues of sockets which are a pain in the butt. -- Nic Ferrier http://www.tapsellferrier.co.uk --~--~---

Re: lighttpd & fcgi

2007-06-24 Thread Nic James Ferrier
Nic James Ferrier <[EMAIL PROTECTED]> writes: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > >> Yah, weird. >> >> Is there any advantage of using a socket or tcp? > > A unix socket might be _marginally_ faster. > > But TCP avoids

Re: Is django a good solution for non-CMS web-apps?

2007-06-29 Thread Nic James Ferrier
walterbyrd <[EMAIL PROTECTED]> writes: > I have been reading that django is good for CMS type sites, but not > especially good for other types of web applications. For example: > financial applications. I have read that TurboGears is better for > those other apps. That seems like nonsense. I am

Re: html sanitizers

2007-07-13 Thread Nic James Ferrier
Derek Anderson <[EMAIL PROTECTED]> writes: > hey all, > > could anyone point me to a python html sanitizer implementation (or > example)? i don't mean to strip all html, just tags and attributes not > on a whitelist, such as I/B/A href/U/etc. I use libxml2/libxslt, something like: doc = li

Re: html sanitizers

2007-07-13 Thread Nic James Ferrier
Brett Parker <[EMAIL PROTECTED]> writes: > On Fri, Jul 13, 2007 at 11:18:18AM +0100, Nic James Ferrier wrote: >> >> Derek Anderson <[EMAIL PROTECTED]> writes: >> >> > hey all, >> > >> > could anyone point me to a python html sanitiz

Re: Django advocacy in a commercial environment

2007-07-20 Thread Nic James Ferrier
Rob Hudson <[EMAIL PROTECTED]> writes: > Python and Django wouldn't be my concern when hiring new employees > since they are easy to learn. It's all the other stuff that comes > with web development that together is harder to find (eg: valid > (x)HTML, CSS, Javascript, database, source control,

Re: File upload using Flash

2007-07-23 Thread Nic James Ferrier
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Hi all, > > some time ago, probably on this list, someone posted a link to a > component in Flash with which you could do file upload from Django. > The component featured a progress bar. > > Does anybody have a link to it? Not to hand... but it'

Re: REST authentication with apache

2007-07-23 Thread Nic James Ferrier
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Hi, > I'm trying to implement a REST service with django and I have a > problem in authentication. > My current approach is with .htaccess with apache password(Basic > Authentication), simple and straight. > But I want to validate users in django,

Re: Overriding the model's save() method

2007-07-23 Thread Nic James Ferrier
Chris Hoeppner <[EMAIL PROTECTED]> writes: > Maybe something like > > def save(self): > self.imageField = pil.thumbnail(self.imageField) > > Can't really tell if I'm on the right track here. Search the list... I've got this from the list: IMAGE_SIZE = [300, 300] THUMBNAIL_SIZE = [100

Re: Overriding the model's save() method

2007-07-23 Thread Nic James Ferrier
Chris Hoeppner <[EMAIL PROTECTED]> writes: > If I get this right, you're saving the original file, and a separate > thumb file. While this seems interesting, it's not what I want to > implement. It's more of a bit of catching the incoming data and > transforming it before it gets saved in the mod

Re: caching and "hello username" on each page

2007-07-28 Thread Nic James Ferrier
Bram - Smartelectronix <[EMAIL PROTECTED]> writes: > I would LOVE to use caching for both anonymous and logged in users, but > the problem is that every page on our site (http://www.splicemusic.com) > has the typical "hello username | log out | ..." at the top of each page. > > Now, how can I p

Re: How well should I know Python before using Django?

2007-05-09 Thread Nic James Ferrier
"Greg Donald" <[EMAIL PROTECTED]> writes: >> 1) beginner >> 2) intermediate >> 3) expert > > 0) None > > But what about experience in other programming languages? If you > currently know zero programming languages, learning any new > programming language or framework will require some significan

adding XSLT templating to Django

2007-05-11 Thread Nic James Ferrier
I've been using Django for a few weeks now and I have to say, despite my general hatred of frameworks, I'm quite impressed with it. It is very fast to get up and going, the ORM works pretty well. New forms are really, really good. I don't like learning new template languages though... so I plugge

Re: First impression of django

2007-05-11 Thread Nic James Ferrier
"James Bennett" <[EMAIL PROTECTED]> writes: > On 5/11/07, Thomas Guettler <[EMAIL PROTECTED]> wrote: >> First I missing a way to sync the database with the model. The command >> syncdb has a bad name. It should be called initdb. But you can live >> without autosync: Redirect the output of sqlall

Re: First impression of django

2007-05-11 Thread Nic James Ferrier
"James Bennett" <[EMAIL PROTECTED]> writes: > On 5/11/07, Nic James Ferrier <[EMAIL PROTECTED]> wrote: >> Something needs to be done though... or ongoing maintenance of Django >> apps is going to be really hard. > > I haven't found it terribly

Re: adding XSLT templating to Django

2007-05-12 Thread Nic James Ferrier
Eugene Morozov <[EMAIL PROTECTED]> writes: > On 11 май, 13:23, Nic James Ferrier <[EMAIL PROTECTED]> > wrote: >> def user_alerts(request, user_name): >> me = get_object_or_404(User, username=user_name) >> alerts = Alert.objects.filter(user=me, seen=F

Re: adding XSLT templating to Django

2007-05-12 Thread Nic James Ferrier
Eugene Morozov <[EMAIL PROTECTED]> writes: >> - there is proper separation between data and style, my JSON doesn't >> include any stylistic information, only stuff that describes the data > > I still think that your example is not the best. "div" and "span" has > no semantic meaning, they're ju

Django users in London want to meet up for beers?

2007-05-15 Thread Nic James Ferrier
To talk django and python? Anyone? -- Nic Ferrier http://www.tapsellferrier.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegr

Re: Moving Images to Amazon S3

2007-05-31 Thread Nic James Ferrier
Kyle Fox <[EMAIL PROTECTED]> writes: > The S3 API requires the file data to be in the format the > open(myfile).read() returns (whatever that is). > > Is there a way to get the same data from an in-memory Image instance, > so I don't need to save/re-read/delete each thumbnail file? Surely the be

Re: Moving Images to Amazon S3

2007-05-31 Thread Nic James Ferrier
"=?ISO-8859-1?Q?Fr=E9d=E9ric_Sidler?=" <[EMAIL PROTECTED]> writes: > openfount provide something that does the trick > http://www.openfount.com/blog/s3dfs-for-ec2 > > and adrian holovaty did something like that some weeks ago for > chicagocrime.org > http://www.holovaty.com/blog/archive/2006/04/0

Re: Very large scale sites in Django

2007-05-31 Thread Nic James Ferrier
Daniel Ellison <[EMAIL PROTECTED]> writes: > Sounds like this might end up being the highest-traffic Django site there > is! :) Errr... I might be in competition with you there. /8-> -- Nic Ferrier http://www.tapsellferrier.co.uk --~--~-~--~~~---~--~~ You

Re: Very large scale sites in Django

2007-05-31 Thread Nic James Ferrier
Daniel Ellison <[EMAIL PROTECTED]> writes: > On Thursday 31 May 2007 11:26:37 Nic James Ferrier wrote: >> Daniel Ellison <[EMAIL PROTECTED]> writes: >> > Sounds like this might end up being the highest-traffic Django site there >> > is! :) >> >&g

Re: Looking for Django Developers As Founders

2007-05-31 Thread Nic James Ferrier
Michael Lim <[EMAIL PROTECTED]> writes: > Hi all, > > Sorry, my email is > > lim ck michael gmail com Ermmm It tells us that in the mail header. -- Nic Ferrier http://www.tapsellferrier.co.uk --~--~-~--~~~---~--~~ You received this message because y

Re: Looking for Django Developers As Founders

2007-05-31 Thread Nic James Ferrier
Michael Lim <[EMAIL PROTECTED]> writes: > Not in Google Groups. The email is masked off as shown in the reply > thread shown below :-) Bizarre! -- Nic Ferrier http://www.tapsellferrier.co.uk --~--~-~--~~~---~--~~ You received this message because you are su

Re: Looking for Django Developers As Founders

2007-05-31 Thread Nic James Ferrier
Tim Chase <[EMAIL PROTECTED]> writes: >>> Sorry, my email is >> >> Ermmm It tells us that in the mail header. > > But it doesn't tell us where this is geographically in the > header, the body, or in the follow-up email :) It's in cyberspace, man. -- Nic Ferrier http://www.tapsellferrier.