Re: Hooking up Django signal to urls.py

2009-03-23 Thread Addy Yeow
Apache would have solved the problem for simple request but there are other data that I wanted to store when the request is made, e.g. attribute data, etc. On Mon, Mar 23, 2009 at 6:44 PM, Russell Keith-Magee wrote: > > On Mon, Mar 23, 2009 at 7:17 PM, Addy Yeow wrote: > > Hi guys, > > > > I li

Re: Hooking up Django signal to urls.py

2009-03-23 Thread Russell Keith-Magee
On Mon, Mar 23, 2009 at 7:17 PM, Addy Yeow wrote: > Hi guys, > > I like to track my visitors URL request in my application. ... > Any idea? Or I should not use signal for this purpose? You could probably get something like this to work, but I have to ask - Is there any reason that you're not jus

Hooking up Django signal to urls.py

2009-03-23 Thread Addy Yeow
Hi guys, I like to track my visitors URL request in my application. To achieve this, I am trying to trigger my signal's receiver function called log_start when a browser request matches a URL pattern in my_app/urls.py. === my_proj/my_app/models.py === from django.core.signals import * from my_pr