xcept:
atr =getattr(res,instr)
print "%s: %s" % (instr,atr)
It sort of prints out an easy to read representation of any model
object. Is there a better way to do this? I am sure there was
something already in Django to do this, but I am having a hard way of
finding. I
Hello:
I will be presenting tonight at ChiPy http://chipy.org If anyone is
around Chicago tonight, feel free to stop in. Here is the official
announcement http://mail.python.org/pipermail/chicago/2010-June/006863.html
thanks, Brian Ray
http://twitter.com/brianray
--
You received this message
ssions
were not working properly for many reasons.
I can recall once I build mod_python linking to the wrong libraries,
and some strange stuff happened.
-- Brian Ray (http://kazavoo.com)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
I am having trouble writing my section of my
httpd.conf to handle both. Can this be done? If so, does anybody have a
working example.
Regards, Brian Ray
http://brianray.chipy.org
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
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!
ousUser>'
So, request.user.is_anonymous() returns True.
I do know know what made me think
django.contrib.auth.handlers.modpython would start a session
automatically. Instead, it just gives Apache the ok to let the request
through to Django.
Would it be appropriate to take the HOST_USER from the request object
and just log the user in after the Apache Authentication by setting
request.session and request.user? More important, is this safe? If so,
this is fine by me.
Regards, Brian Ray
Thanks Ian. But, this is not really what I am doing here. I do not
want to create users from Apache.
Kind Regards, Brian
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
ill not work because 'accountsaccessrequest' is
not yet defined.
I got around the validation error by making a accountsaccessrequest the
prototype, "class accountsaccessrequest(meta.Model): pass". Although
this tried to make two tables and would not work either.
Any ideas how I should proceed. Workarounds?
Kind Regards,
Brian Ray
="t");
Alhtough, I am unsure if this will work if I switch Database platforms.
Is there a better way?
Thanks, Brian Ray
bray sent com
http://brianray.chipy.org
Reread the section "Serving the admin files" from
<http://www.djangoproject.com/documentation/modpython/>.
So, you have to move or point to the location of the media files and
they need to be accessable from Apache.
hth, Brian Ray
bray sent com
http://brianray.chipy.org
equest),
'crumbsbar':crumbsbar(request),
})
The manipulator is a AccountManipulatorChange. I double checked by
calling HttpResponse on manipulator.__class__.__name__.
I do use a "_pre_save" in my model and I was wondering if this somehow
was causing this unexpected behaviour.
tia,
Brian Ray
<http://brianray.chipy.org> aim: brianray34
Hey all,
We are having a Django focused meetup with ChiPy (Chicago Python User
Group) tomorrow night:
RSVP
http://chipy.org and/or http://www.meetup.com/_ChiPy_/events/220117890/
Talks will be recorded. Also looking for more talks.
Hope to see some of you there.
Warm Regards, Brian Ray
14 matches
Mail list logo