Maybe I'm not understanding what the problem is, but why can't you
just make a new directory for each user?
> > user A uploads file 1 to /static_files//file1.jpg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On Fri, 2007-05-18 at 10:05 +, Guyon Morée wrote:
> 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.
On May 18, 12:30 pm, Guyon Morée <[EMAIL PROTECTED]> wrote:
>
> I agree that would be nice, but wouldnt that mean that django is
> serving the files?
>
Not necessarily. The wrapper view could check permissions and issue a
redirect to the static site if the user has a right to see the image,
or
I agree that would be nice, but wouldnt that mean that django is
serving the files?
That's supposedly not recommended.
cheers,
On May 18, 12:49 pm, "Aidas Bendoraitis" <[EMAIL PROTECTED]>
wrote:
> The most secure way, in my opinion, is to keep the files in a
> directory which is not accessible
The most secure way, in my opinion, is to keep the files in a
directory 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
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
6 matches
Mail list logo