but i have passed two argument in login function its showing error
  if user.type == 'Normal':
                print('hobbies : ', user.hobbies)
                return detail(request, user)

def detail(request):
    print('hobbies : ', user.hobbies)
    return render(request, 'company/detail.html',{'details':request.user})

it wont work tell me what should i do to get at render page

On Thu, Nov 21, 2019 at 1:04 AM Jordan Micle <jordanmicle2...@gmail.com>
wrote:

> def detail(request,user):
>>     print('hobbies : ', user.hobbies)
>>     return render(request, 'company/detail.html',{'details':user})
>>
>
> change detail function like this
> def detail(request):
>     print('hobbies : ', user.hobbies)
>     return render(request, 'company/detail.html',{'details':request.user})
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3f6f3d82-63cf-45ff-99da-e008d2cd3841%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/3f6f3d82-63cf-45ff-99da-e008d2cd3841%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMtmBS8oF0CD%3DAqcmw8KwGPoXr5NoNXVsi%2Bg7pyfC-MUW4Tfbw%40mail.gmail.com.

Reply via email to