Re: django profiles question and http404

2009-09-03 Thread aschmid
as usual i solved by myself! with something like this: user = User.objects.get(username=username) try: profile_obj = user.get_profile() except ObjectDoesNotExist: return HttpResponseRedirect('/some/path/') thank you anyway... On Sep 3, 4:16 pm, andreas schmid wrote: >

django profiles question and http404

2009-09-03 Thread andreas schmid
hi, im trying django-profiles and i like it but im not understanding why if a profile does not exist it has to output a http404. i think it doesnt has really much sense because if a profile is not yet created or not public it shouldnt give a 404 but a "im sorry but the profile is not available be