At 11:49 PM -0600 9/11/09, Gabriel Gunderson wrote: >On Fri, Sep 11, 2009 at 3:03 PM, Jim Myers <myer...@gmail.com> wrote: >> I have a requirement to serve static files only to users authenticated >> through Django secure login. > >http://docs.djangoproject.com/en/dev/howto/apache-auth/
I've got a similar, but slightly more complex need... I need to serve some static files (pdfs etc.) to any authorized user, other static files to members of group A (as in Django), and other static files to members of group B. It would seem that I could create some specific permission name for group A and another for group B. I'll put each set of files into a unique directory / url as need-be. I was hoping that my friend who wrote the Django code for this site would tweak this for me a couple of weeks ago since I haven't dealt with the Django code for ages and ages and feel like I'm back to a complete newbie. So... the naive questions are: 1) how do I configure each different directory in Apache's conf file to require a different permission name? ( 2) where do I put the PythonOption directives ? e.g. DjangoPermissionName 3) in the example cited above, am I correct that I need to change "mysite.settings" to whatever I set DJANGO_SETTINGS_MODULE to actually? 4) is it really going to be just that simple... as described in that howto? (he asks hopefully -- right now I need a simple "do this, then that, then this") Thanks -- Glenn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.