We currently have django(using flup) running as a fastcgi external server (via
a socket) and would like to use django to control access to static apache files
(to avoid duplicate logins etc etc); I see that fastcgi can do Authentication
(in the http sense) and access checking. Is there a way t
credentials in
auth_user file ( Django default) just like normal users.
Now, I have to split this login mechanism so that controllers can
login with some Apache authentication mechanism and send data without
Django coming into Picture.
The sent data is ultimately stored into Django database. As I want
On Fri, Feb 20, 2009 at 12:59 PM, Jlcarroll wrote:
>
> I posted this a couple of days ago and didn't get a response. Thought
> that I might try again.
>
> I am creating a private genealogy web page of pictures/obituaries/data
> files/census records etc... all just a set of files within a director
bump?
On Feb 20, 10:59 am, Jlcarroll wrote:
> I posted this a couple of days ago and didn't get a response. Thought
> that I might try again.
>
> I am creating a private genealogy web page of pictures/obituaries/data
> files/census records etc... all just a set of files within a directory
> stru
I posted this a couple of days ago and didn't get a response. Thought
that I might try again.
I am creating a private genealogy web page of pictures/obituaries/data
files/census records etc... all just a set of files within a directory
structure. I just want Apache to index the directory's conten
I am creating a private genealogy web page of pictures/obituaries/data
files/census records etc... all just a set of files within a directory
structure. I just want Apache to index the directory's contents and
the files within them and serve them over the web. That works fine.
Then I wanted to res
Matt wrote on 11/05/08 16:26:
> Hi,
>
> I have Django running on Apache 2.2 on windows. I am attempting to
> use django authentification to secure an apache folder using this
> configuration:
>
>
>
> AuthType Basic
> AuthName "mysite.com"
> AuthUserFile /dev/null
> AuthBasicAu
That worked. Thanks!
On Nov 5, 3:41 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Have you tried to create an empty file and use the filename as AuthUserFile?
>
> Thomas
>
> Matt schrieb:
>
>
>
> > Hi,
>
> > I have Django running on Apache 2.2 on windows. I am attempting to
> > use
Hi,
Have you tried to create an empty file and use the filename as AuthUserFile?
Thomas
Matt schrieb:
> Hi,
>
> I have Django running on Apache 2.2 on windows. I am attempting to
> use django authentification to secure an apache folder using this
> configuration:
>
>
>
> AuthType Basic
Hi,
I have Django running on Apache 2.2 on windows. I am attempting to
use django authentification to secure an apache folder using this
configuration:
AuthType Basic
AuthName "mysite.com"
AuthUserFile /dev/null
AuthBasicAuthoritative Off
Require valid-user
PythonPath
I've got the answer
the permission format used in DjangoPermissionName is
in my example, it's 'main.printdriver_developer'
On Oct 22, 11:56 pm, Eric <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> I set apache authentication against django's user databas
Hi everybody,
I set apache authentication against django's user database. and I want
to limit a location to a group of people of my django staff.
I set this in apache's config file like this:
SetHandler cgi-script
# authenticat
Hello,
I'm struggling a little to get apache configured to only allow access
to some static media (image files in different resolutions, according
to the permissions).
These are the directives i give for the location of the medium sized
images:
...
SetHandler python-program
PythonHandler django.c
[EMAIL PROTECTED] wrote:
> Hi.. thanks for your replies guys.
>
> You're probably right... I'm running mod_python from the Ubuntu dapper
> repositories which currently has version 3.1.4. Unfortunately the Edgy
> package (which is 3.2.8) depends on a newer version of libc6 which
> means that I rea
Hi.. thanks for your replies guys.
You're probably right... I'm running mod_python from the Ubuntu dapper
repositories which currently has version 3.1.4. Unfortunately the Edgy
package (which is 3.2.8) depends on a newer version of libc6 which
means that I really don't want to upgrade the package
[EMAIL PROTECTED] wrote:
> Hello. I'm trying to get Apache to authenticate users using Django's
> user database but I'm getting the above error (the whole apache error
> log is at the bottom of the message).
>
> I've set up my project and created users using the Django development
> server so the
Hi Stefan,
What version of Apache and mod_python are you using?
-Raj
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsu
Hello. I'm trying to get Apache to authenticate users using Django's
user database but I'm getting the above error (the whole apache error
log is at the bottom of the message).
I've set up my project and created users using the Django development
server so the database connection is working from
On 1/7/06, Brian Ray <[EMAIL PROTECTED]> wrote:
> btw, I will fill out a Trac ticket for the modpython.py fix, just in
> case this thread get's lost in cyberspace.
Thanks for the ticket and patch! I've committed it.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org
This is in my view *after* the Authenticaion:
def login(request):
user = users.get_object(username__exact=request.META['REMOTE_USER']
request.session[users.SESSION_KEY] = user.id
request.user = user
# do something else ...
Seems to make both Django and Apache happy.
Regards, Brian
Thanks Ian. But, this is not really what I am doing here. I do not
want to create users from Apache.
Kind Regards, Brian
: 'bray',
> 'REQUEST_METHOD': 'GET',
> 'SCRIPT_NAME': None,
> 'SERVER_NAME': 'foo.com',
> 'SERVER_PORT': 0,
> 'SERVER_PROTOCOL': 'HTTP/1.1',
> 'SERVER_SOFTWARE': 'mod_python
EMOTE_USER': 'bray',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': None,
'SERVER_NAME': 'foo.com',
'SERVER_PORT': 0,
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'mod_python'},
user:Anonym
Adrian,
I took a look at modpython.py. I changed line 16 to:
_str_to_bool = lambda s: s.lower() in ('1', 'true', 'on', 'yes')
Note the parethesis.
Seems to work now. Cool, Thanks!
On 1/7/06, Brian Ray <[EMAIL PROTECTED]> wrote:
"/usr/local/lib/python2.4/site-packages/django/contrib/auth/handlers/modpython.py",
> line 20, in authenhandler
> staff_only = _str_to_bool(options.get('DjangoRequireStaffStatus',
> "on"))
>
> TypeError: 'tuple' object is not callable
Ooooh, tha
Hi Adrian:
When placed together, I do get asked for Authentication from browser.
When good credentials are provided, I do get through but then an error
is displayed.
I would like to determine wether or not I am doing something wrong.
Otherwise, can log this intro Trac as a feature request?
-- B
On 1/6/06, Brian Ray <[EMAIL PROTECTED]> wrote:
> I see it's possible to `Authenticate against Django database from
> Apache <http://www.djangoproject.com/documentation/apache_auth/>`_. I
> would like to experiment with using Apache Authentication for Django
> instea
I see it's possible to `Authenticate against Django database from
Apache <http://www.djangoproject.com/documentation/apache_auth/>`_. I
would like to experiment with using Apache Authentication for Django
instead of a login webpage, as well. Likewise, I would like to use
mod_python.
28 matches
Mail list logo