Please check the classcomm project for how to do this. We determined
the best/fastest approach would be to use Apache mod_auth_token and
generate secure URLs using a custom template tag. You can find code
and instructions for how to do that @ http://classcomm.googlecode.com/
and across the Interne
If you're using apache you might want to consider wiring your app to
generate mod_auth_token URLs and have apache receive these.
On Dec 15, 8:29 am, NoviceSortOf wrote:
> What is the best way to allow authorized downloads
> to specific users in Django.
>
> We have 2 possible scenarios that could
What is the best way to allow authorized downloads
to specific users in Django.
We have 2 possible scenarios that could work for us.
1. A download directory where any user can download any
file in the folder.
or
2. Granting specific rights to specific users to download a specific
file
or se
Recently I've encountered the following error:
--
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py",
line 1537, in HandlerDispatch
default=default_handler, arg=req, si
marksibly wrote:
> Found it in the FAQ;
> [quote]
> If you're using mod_python but not using Django's request handler,
> you'll need to work around a mod_python bug related to the use of
> SetEnv; before you import anything from Django you'll need to do the
> following:
>
> os.environ.update(req.s
Found it in the FAQ;
[quote]
If you're using mod_python but not using Django's request handler,
you'll need to work around a mod_python bug related to the use of
SetEnv; before you import anything from Django you'll need to do the
following:
os.environ.update(req.subprocess_env)
[/quote]
--~--~
Hi,
Thanks for that!
Another option I've found is to use mod_python's 'sendfile()' method in
req.
However, I'm having a problem using Django within a 'plain' mod_python
handler - I get the 'DJANGO_SETTINGS_MODULE' not found error as soon as
I try to import my models.
I've copied the apache co
marksibly wrote:
> I couldn't find a 'HttpResponseStaticFile' class or anything, so what
> other options do I have?
You can pass an open file to a usual HttpResponse:
f = open(filename, 'rb')
return HttpResponse(f, mimetype='application/octet-stream')
> Also, how efficient would it be
Hi,
I have a django 'files' app that simply maps 'virtual' file names to
physical files for downloading.
Currently, I'm getting the view to return a HttpResponseRedirect to a
'files' area, but I don't like this as it means the files are
'publicly' available and I'd like everything to go through
9 matches
Mail list logo