Exactly. Thats what I need to learn :o)
Thanks alot :o)
On 21 Aug., 17:25, David Zhou wrote:
> On Aug 21, 2009, at 9:54 AM, MIL wrote:
>
> > this works fine but I dont want to repeat it in all my views:
> > def my_profile(request):
> > gotta_go_through = request.user.get_profile
> > ().gotta
On Aug 21, 2009, at 9:54 AM, MIL wrote:
> this works fine but I dont want to repeat it in all my views:
> def my_profile(request):
> gotta_go_through = request.user.get_profile
> ().gotta_go_through_this_url()
> if gotta_go_through and gotta_go_through != request.path:
>
Hi there. My first django Question here ;)
I am trying to make this work:
def _user_gotta_go_somewhere(request):
gotta_go_through = request.user.get_profile
().gotta_go_through_this_url()
if gotta_go_through and gotta_go_through != request.path:
return HttpRespons
3 matches
Mail list logo