I am very new to Django but can't this be handled by middleware
instead? It should have access to user and page data should it not?

-Martin

On Thursday, November 19, 2009, Fabio Natali
<nat...@poisson.phc.unipi.it> wrote:
> Hi there!
>
> I have a Django based website with a few dozen users. Only logged
> users can enter the website and browse its pages.
>
> I wish I could set up a stats page, i.e. some sort of table listing
> how many accesses to the website for a given user. Specifically, I
> need:
>
> - per-user number of accesses
> - per-page number of accesses
> - detailed listing: how many times user x has accessed page y?
> - I should be able to select the period of time (i.e. accesses in
>   November)
>
> I wonder if all those informations are somehow already contained in my
> user model. I guess they aren't.
>
> What's my best bet? Should I extend my db with a new model
> (e.g. "access", with fields: user, page, date)?
>
> Is there any "right" way to do this?
>
> Thanks and regards,
>
> --
> Fabio Natali
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@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=.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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=.


Reply via email to