Yes, thank you, but I already figured that out and made a stupid
function add_to_log(request). What I am really wondering is, how do I
avoid having to call add_to_log(request) in every single view function
in views.py?

Thanks.

On Jan 28, 8:04 pm, Malcolm Tredinnick <malc...@pointy-stick.com>
wrote:
> You have access to all the HTTP headers in the request object that is
> passed to your view. See [1] for details. Once you have that
> information, recording it somewhere via a middleware or something should
> be easy.
>
> [1]http://docs.djangoproject.com/en/dev/ref/request-response/#django.htt...
>
> Regards,
> Malcolm
--~--~---------~--~----~------------~-------~--~----~
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 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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to