Why on earth doesn't this user_page view work? Getting "404, No User matches the given query."
from django.contrib.auth.models import User from django.template import RequestContext from django.shortcuts import render_to_response, get_object_or_404 def user_page(request): user = User.get_object_or_404(User, username=request.user.username) movies = user.mymovie_set.all() variables = RequestContext(request, { 'movies': movies, }) return render_to_response('user_page/user_page.home.view.html', variables) The user is loged in -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.