Normal views and JSON API

2009-01-21 Thread Guyon Morée
Hi, I've built a bunch of 'normal' views rendering templates and processing POST's. Now, I'd like to build a API for my site, based on JSON. When building this API I noticed most of the views are 99% the same, except for outputting JSON instead of HTML templates. Any ideas how I could reduce du

Re: Normal views and JSON API

2009-01-21 Thread Guyon Morée
Malcolm, thank you for the elaborate response, much appreciated! On Jan 21, 10:51 am, Malcolm Tredinnick wrote: > On Wed, 2009-01-21 at 01:32 -0800, Guyon Morée wrote: > > Hi, > > > I've built a bunch of 'normal' views rendering templates and > > pr

Securing static files

2007-05-18 Thread Guyon Morée
Hi all, The django docs tell me i'm better of serving my static files through a webserver instead of django itself. This is fine, but it gives me a design problem. I'm letting my users upload files to my server through django. The filepaths are stored in a table. The files are accessible to my w

Re: Securing static files

2007-05-18 Thread Guyon Morée
ory which is not accessible via the webserver and write a > wrapper view, which would return the static files if the user within > the current session has appropriate permissions. > > Regards, > Aidas Bendoraitis aka Archatas > > On 5/18/07, Guyon Morée <[EMAIL PROTECTED]>

Re: Django Gebruikers Groep

2006-11-12 Thread Guyon Morée
ja ik wil! --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Fo