Re: Better Support for static file serving via django

2007-12-14 Thread Kevin Menard
On Dec 12, 2007, at 3:19 PM, Robert Coup wrote: > > On 13/12/2007, Thomas Güttler <[EMAIL PROTECTED]> wrote: >> How can you check that only authorized users can access >> some files? >> >> Files which have a coresponding FileField in the model: How can >> you test that only some people are allow

Re: Better Support for static file serving via django

2007-12-13 Thread Thomas Guettler
Am Mittwoch, 12. Dezember 2007 21:34 schrieb SmileyChris: > On Dec 13, 9:19 am, "Robert Coup" <[EMAIL PROTECTED]> > > wrote: > > On 13/12/2007, Thomas Güttler <[EMAIL PROTECTED]> wrote: > > > How can you check that only authorized users can access > > > some files? > > Thomas, you might want to tr

Re: Better Support for static file serving via django

2007-12-12 Thread msaelices
On 12 dic, 01:30, "Mike Scott" <[EMAIL PROTECTED]> wrote: > Hey All, > > I've been looking at how to better serve my static files for django sites, > and I'm particularly interested in things like Javascript handling. > > For example if we were to look at RoR, they have their include tags which

Re: Better Support for static file serving via django

2007-12-12 Thread SmileyChris
On Dec 13, 9:19 am, "Robert Coup" <[EMAIL PROTECTED]> wrote: > On 13/12/2007, Thomas Güttler <[EMAIL PROTECTED]> wrote: > > > How can you check that only authorized users can access > > some files? Thomas, you might want to try out http://code.djangoproject.com/ticket/3583 It needs some testing/

Re: Better Support for static file serving via django

2007-12-12 Thread Robert Coup
On 13/12/2007, Thomas Güttler <[EMAIL PROTECTED]> wrote: > How can you check that only authorized users can access > some files? > > Files which have a coresponding FileField in the model: How can > you test that only some people are allowed to see it? > > Apache can't do it. Or at least it would

Re: Better Support for static file serving via django

2007-12-12 Thread Thomas Güttler
Am Mittwoch, 12. Dezember 2007 01:48 schrieb [EMAIL PROTECTED]: > It sounds like you're actually proposing two things here. > > 1) Using Django to serve static files. There already exists a > mechanism for Django to accomplish this during development, detailed > here: http://www.djangoproject.com

Re: Better Support for static file serving via django

2007-12-11 Thread Robert Coup
On 12/12/2007, Mike Scott <[EMAIL PROTECTED]> wrote: > I've been looking at how to better serve my static files for django sites, > and I'm particularly interested in things like Javascript handling. > > For example if we were to look at RoR, they have their include tags which can > automaticall

Re: Better Support for static file serving via django

2007-12-11 Thread [EMAIL PROTECTED]
It sounds like you're actually proposing two things here. 1) Using Django to serve static files. There already exists a mechanism for Django to accomplish this during development, detailed here: http://www.djangoproject.com/documentation/static_files/ , although it's not a good idea to use this

Re: Better Support for static file serving via django

2007-12-11 Thread Collin Grady
Mike Scott said the following: > Is this an approach the bulk of the Django community are interested in > taking or is it something that we should leave to the things that do it > best, ie: Apache and the like. -1 to handling media through Django, that's the job of the webserver :) -- Collin Gr

Better Support for static file serving via django

2007-12-11 Thread Mike Scott
Hey All, I've been looking at how to better serve my static files for django sites, and I'm particularly interested in things like Javascript handling. For example if we were to look at RoR, they have their include tags which can automatically compile javascript into one big file, compressing and