Kuntal:
I have resolved that issue, but we can make interchange of information:
I need the Ajax code where I can evaluate in onblur text html if one
patient is found or not. The field key in the text box is RUT (each person
have one in my country)
for example, my rut is 7841349-2, and it's only, no other person have it.
In other words, I need evaluate the information text when the user get out
of this field (text box).
It doesn't help me evaluate it in submit buttom.
I need the following things:
-The template with with two fields, rut and name
-The AJAX code
-The DJANGO VIEW, where it do the seek patient
If you send this information I will send you one bit WORD file with images
how can controller the users permissions

We can help each other to achieve our respective goals






Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos
99.7721.15.70



El sáb., 11 jul. 2020 a las 13:22, Kuntal Paul (<[email protected]>)
escribió:

> Thank you for your response. I did this way and it was giving me a 405
> error. I couldn't find my mistake. I was saving both of them as student and
> as teacher separately from auth.user.
>      Also, do I have to provide a separate temple for that view?
>
>
> On Sat, Jul 11, 2020, 10:41 PM oba stephen <[email protected]> wrote:
>
>> You can consider redirecting to a URL that handles the request.
>>
>> That is a View function that checks if the user is a student or teacher,
>> then renders the respective profiles.
>>
>> Regards
>>
>> On Sat, Jul 11, 2020 at 5:58 PM Kuntal Paul <[email protected]> wrote:
>>
>>> The *LOGIN_REDIRECT_URL*  only allowing to redirect to a particular
>>> profile page. But in scenarios like where there are *students* and
>>> *teachers*, both of them need their specific profile page after login.
>>>
>>> Using* LOGIN_REDIRECT_URL*, both the teachers and the students are
>>> getting redirected to the same profile ( in my case, both of them either
>>> entirely to teachers profile or entirely to students profile).
>>>
>>> How can I set *two login redirects instead of one*? I searched in the
>>> documentation, online videos, and everything but couldn't find such. Please
>>> help me with resources/codes/guide/etc from where I can learn from and
>>> implement. I'm pretty new to this and have tried whatever I know till now.
>>>
>>> Thank You.
>>>
>>> --
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/e185b4ba-2219-4a1b-bba2-8ef4e4466682o%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/e185b4ba-2219-4a1b-bba2-8ef4e4466682o%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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAAJsLnqfSPy0VEjpv9TrPS-qcFTWjrtQqhFMMQs8B6qqUX5XOw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAAJsLnqfSPy0VEjpv9TrPS-qcFTWjrtQqhFMMQs8B6qqUX5XOw%40mail.gmail.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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABD8006ftC%3DtPyk%2BFWikZ0mGLGpiNBnFicU6eq2cL-mRcO-LbA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CABD8006ftC%3DtPyk%2BFWikZ0mGLGpiNBnFicU6eq2cL-mRcO-LbA%40mail.gmail.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKVvSDC2MzBCQYiSs7CSbEYxj1LD28cMFDqF5HWVZz89TtBkGw%40mail.gmail.com.

Reply via email to