This is a weird one. It's so weird, I'm positive I'm making a very
dumb mistake somewhere. This is my MO.

Anyway, I am trying to use django-registration to do some very basic
login, logout stuff. I'm using RequestContext to make usernames
available to all of my templates, like so:

//views.py
from django.template import RequestContext
def detail(request):
...
    context = { 'employees': employees, 'entityinfo': entityinfo}
    return render_to_response('results/resultstable.html',
context_instance=RequestContext(request, context))
//

I'm doing some variation of the same in all of my views.

The problem is my {{ user }} (which I'm using in base.html) isn't
showing up in the majority of my pages. It shows up on all of the
django-registration pages that start with "/accounts/." It also shows
up on my index page, which is the redirect from the login page.

Here's the curveball: When I log in to the admin site, and then go to
my project, everything works smashingly. I can go to all of my pages,
and it says, "Hi, Matt!"

What is going on here? I assume I either am using registration
incorrectly, or am using RequestContext incorrectly. Or both.



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