Re: How can I serve static files while requiring Django-based access permissions?

2011-11-09 Thread zak
Thanks for another great suggestion. My really pressing questions have been successfully answered, I now have a high-performance solution for the final version and a purely Python/Django solution for initial testing and demos. Hopefully I can figure out how to make the high-performance solution

Re: How can I serve static files while requiring Django-based access permissions?

2011-11-09 Thread Tom Evans
On Tue, Nov 8, 2011 at 11:12 PM, zak wrote: > Thank you, that is a very helpful suggestion. > > However, I have a followup question. What are my options if: > > 1. It is okay to be slow (low performance), and > 2. The method must work on any webserver, not necessarily or >

Re: How can I serve static files while requiring Django-based access permissions?

2011-11-08 Thread zak
Thank you, that is a very helpful suggestion. However, I have a followup question. What are my options if: 1. It is okay to be slow (low performance), and 2. The method must work on any webserver, not necessarily or specifically Apache or Nginx. In pure Python/Django, how do I open a file on

Re: How can I serve static files while requiring Django-based access permissions?

2011-11-08 Thread Ian Clelland
On Tue, Nov 8, 2011 at 2:11 PM, zak2011 wrote: > Dear Django Users, > > tl;dr: Please tell me what strategies I might use to serve a large > static file from within Django, from views.py. > > If I want to limit access to a particular page in a Django app, I can > do something

How can I serve static files while requiring Django-based access permissions?

2011-11-08 Thread zak2011
Dear Django Users, tl;dr: Please tell me what strategies I might use to serve a large static file from within Django, from views.py. If I want to limit access to a particular page in a Django app, I can do something like this in views.py: (Note: I will use four periods to indent, because spaces