Re: Where to put PDF files + how to authenticate the urls requesting them

2012-11-29 Thread Loai Ghoraba
I read it and it seems nice, I will further read about the topic Thanks a lot for the help :) On Thu, Nov 29, 2012 at 1:44 PM, Tom Evans wrote: > On Thu, Nov 29, 2012 at 11:30 AM, Loai Ghoraba wrote: > > I am still new to sreving stuff (in fact I know barely anything about it > :)) > > Then yo

Re: Where to put PDF files + how to authenticate the urls requesting them

2012-11-29 Thread Tom Evans
On Thu, Nov 29, 2012 at 11:30 AM, Loai Ghoraba wrote: > I am still new to sreving stuff (in fact I know barely anything about it :)) > Then you instruct to have something like this > > url(r'^media/(?P.*)$', 'myview,func', { > 'document_root': MEDIA_ROOT, > }), > > and

Re: Where to put PDF files + how to authenticate the urls requesting them

2012-11-29 Thread Loai Ghoraba
I am still new to sreving stuff (in fact I know barely anything about it :)) Then you instruct to have something like this url(r'^media/(?P.*)$', 'myview,func', { 'document_root': MEDIA_ROOT, }), and my func have the instructions to the real web servers ? And another

Re: Where to put PDF files + how to authenticate the urls requesting them

2012-11-29 Thread Tom Evans
On Wed, Nov 28, 2012 at 6:27 PM, Loai Ghoraba wrote: > Thanks for the reply, but I am still new to the web technology world, so I > would like to fully use Django now before , moving to another ways to host > my files. > Actually I am totally new to serving stuff, so if there is some best > practi

Re: Where to put PDF files + how to authenticate the urls requesting them

2012-11-28 Thread Loai Ghoraba
Thanks for the reply, but I am still new to the web technology world, so I would like to fully use Django now before , moving to another ways to host my files. Actually I am totally new to serving stuff, so if there is some best practice or that my way is totally wrong, please tell me. So in sh

Re: Where to put PDF files + how to authenticate the urls requesting them

2012-11-28 Thread Javier Guerra Giraldez
On Wed, Nov 28, 2012 at 10:03 AM, Javier Guerra Giraldez wrote: > i think there are a couple Django apps that help with that, while also > abstracting the differences between servers. found these: https://gist.github.com/1776202 https://github.com/johnsensible/django-sendfile -- Javier -- Yo

Re: Where to put PDF files + how to authenticate the urls requesting them

2012-11-28 Thread Javier Guerra Giraldez
On Wed, Nov 28, 2012 at 5:51 AM, Loai Ghoraba wrote: > Hi > > I have a little question: First, I am hosting my PDF files within / > static directory, (as my understanding is that they are static files), > so is this the correct way to host PDF files and downloadable files > generally ? > > Second: