Re: weird request.user problem in view

2010-02-13 Thread Anders Eide
I know. Just a typo in this post. Thanks for trying to help anyway :) the error was in the urls.py /user// /user/page/ When loading /user/page/ /user/ wrote: > On 13 February 2010 13:46, Anders Eide wrote: > > > > > did a stupid PEBCAK i the urls.py file. Works fine now > > > On Feb 13, 1:33 p

Re: weird request.user problem in view

2010-02-13 Thread rebus_
On 13 February 2010 13:46, Anders Eide wrote: > did a stupid PEBCAK i the urls.py file. Works fine now > > On Feb 13, 1:33 pm, Anders Eide wrote: >> 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

Re: weird request.user problem in view

2010-02-13 Thread Anders Eide
did a stupid PEBCAK i the urls.py file. Works fine now On Feb 13, 1:33 pm, Anders Eide wrote: > 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 djan

weird request.user problem in view

2010-02-13 Thread Anders Eide
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_obje