How to know the current apache authenticated user

2008-06-01 Thread Maykel Moya
I'm running a Django site via apache2 + mod_python. I'm not using any Django related authentication mechanism, just apache digest authentication against a flat file. I need to know what user is currently authenticated by apache. Some people on #django have had point me to PythonAuthHandler but I

Problems validating data

2008-02-08 Thread Maykel Moya
I'm using Django trunk r7047. This is my code prj/validators.py === from django.core.validators import ValidationError class StringLengthIs(object): def __init__(self, length, error_message=''): self.length = length if not error_message: self.error_message