On 16/11/2011 6:11am, Stuart Laughlin wrote:
FWIW I agree with Mike. It's difficult to advise without seeing
exactly what you're doing, but I think Mike's advice/approach is
sound.

I agree too. But in today's mail is a link to an answer to a similar question about centralising control of login-required. It may be useful to consider a middleware approach to logging.

See Colin Bean's email headed Re: Automatically direct unauthenticated users to homepage

Cheers

Mike



--Stuart

On Nov 15, 4:16 am, Mike Thon<mike.t...@gmail.com>  wrote:
I'm no expert here but if it were me building this project, I'd build the
logging mechanism as a separate app and still use the decorator as you are
already doing. As for 'cross app reference' - you just import your logging
app into your project they way you do any other app. Should be fairly
simple to factor out your current logging code into a separate app.  Then
it will be easier to reuse in other projects.
best
Mike


--
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