hello gil,

thanks for tutorial link i will check it out that one. 
As you gave solution of calling a function via view i did so but it didnt 
worked and another thing i dint understand is about post i thought it didnt 
support in django.

can you please provide me little code your talking about post method?  it 
will be helpful.

thanking you.

On Saturday, April 20, 2019 at 12:52:32 PM UTC+5:30, Gil Obradors wrote:
>
> Hi!
>
> If you want you can re-use django.contrib.auth package
> Here one tutorial: 
> https://wsvincent.com/django-user-authentication-tutorial-login-and-logout/
>
> Otherwise, you can do a POST to a URL, and this url (url.py) call a 
> function ( views.py)
>
> Good luck!
>
>
>
>
> Missatge de Mayur Bagul <mayur...@gmail.com <javascript:>> del dia ds., 
> 20 d’abr. 2019 a les 9:17:
>
>> Hello Community,
>>
>> i'm facing one problem. Scenario is such that i have one template 
>> login.html in Django Project, inside this file i have wrote html code for 
>> login purpose.
>>
>> what i want that once user click on Log-In Button it should call function 
>> ( onclick using Javascript cant use in Django) which will check password 
>> and username.
>> if username and password is Correct then it will go to next page which is 
>> main page else it will return prompt or alert 'Wrong Credentials".
>>
>> but im not getting how i can do this in Django ?
>>
>> So guys Please help me out of this issue.
>>
>> Thanking you,
>> Mayur Bagul.
>>
>> -- 
>> 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...@googlegroups.com <javascript:>.
>> To post to this group, send email to django...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/0fd23be8-b2d7-437e-b3e7-05c1f5bcdf4e%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/0fd23be8-b2d7-437e-b3e7-05c1f5bcdf4e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9986adf9-9f54-4728-892c-361c3cdedd1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to