Profile for
herrstagl
| Name | herrstagl |
|---|---|
| Email Address | fanatisch@gmx.de |
| Avatar | |
| Posts | 1 |
-
- 2008-02-19 23:51:28
- user.is_authenticated in templates
- Board » Django das Framework » Anleitungen / Howto's
-
Hallo,
ich versuche nun schon seit einiger Zeit ein recht simpel erscheinendes Problem zu lösen. Und zwar möchte ich auf einer User Detail Seite das User Profile anzeigen, wenn der User eingeloggt is, möchte ich erweiterte Optionen anzeigen. Jedoch bekomme ich bei jedem User ein True für is_authenticated. Hier ein Beispiel aus der Shell:
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.contrib.auth.models import User
>>> u = User.objects.get(username='user1'
>>> u.is_authenticated()
True
Hat jemand von euch eine Idee?
