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