Hrm if that's the case, I msut have slipped up in the code somewhere.
Thanks :)

I'll go see if i am inserting into sessions for some reason if they're
anonymous.

On Dec 6, 4:27 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > It is a problem. It hits the db if it has to create it.Sorry I still don't 
> > understand :-). You say that you do need
> authentication but don't need anonymous sessions. Then in default Django
> setup you never hit a database unless you try to store something in
> session. So you can check if you work with authenticated (non-anonymous)
> user and hit session only then:
>
>      def some_view(request):
>        if request.user.is_authenticated():
>          request.session['last_login'] = datetime.now()
>        ...
>        return ...
> 
> Am I thinking in a wrong direction?


--~--~---------~--~----~------------~-------~--~----~
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to