Please clarify what you mean exactly.
You must enable users in your views if you want access to them within
your templates.

from http://docs.djangoproject.com/en/dev/topics/auth/ :
if request.user.is_authenticated():
    # Do something for authenticated users.
else:
    # Do something for anonymous users.

On Apr 22, 5:13 am, Bastien <bastien.roche...@gmail.com> wrote:
> The last thread about that is quite old, I was wondering if there is
> any new way to do that?
>
> I wrote a method in a model that requires the current user and I use
> this method in a template so I guess I can't pass any argument, can I?
>
> thanks,
> Bastien
--~--~---------~--~----~------------~-------~--~----~
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