Re: Login Not working

2020-04-08 Thread waqar khan
Thank You Very Much Virus-free. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1

Re: Login Not working

2020-04-07 Thread Akshat Zala
On Tuesday, 7 April 2020 18:49:36 UTC+5:30, Akshat Zala wrote: > > You can use decorator before start of view: > No need to write different view for user and admin. > > @login_required(*redirect_field_name='next'*, *login_url=None)* > > On Monday, 6 April 2020 19:05:33 UTC+5:30, kkwaqar786 wrote:

Re: Login Not working

2020-04-07 Thread Akshat Zala
You can use decorator before start of view: No need to write different view for user and admin. @login_required(*redirect_field_name='next'*, *login_url=None)* On Monday, 6 April 2020 19:05:33 UTC+5:30, kkwaqar786 wrote: > > Loggin not working , > > Please Help Me, > > Admin: > > username:-admin

Re: Login Not working

2020-04-07 Thread Akshat Zala
YOu can use decorator: @login_required before start of the function/ On Monday, 6 April 2020 19:05:33 UTC+5:30, kkwaqar786 wrote: > > Loggin not working , > > Please Help Me, > > Admin: > > username:-admin > password:-admin > > User: > > username:-waqar > password:-Test@123 > > > > Please Solved m

Re: Login Not working

2020-04-07 Thread shengdao zhou
In *onevideos.zip\onevideos\userproject\home\views.py 17:28*, if the login is successful, *login.html *will still be returned, which should be replaced with *index.html*. [image: views.py 17.png] 在 2020年4月6日星期一 UTC+8下午9:35:33,kkwaqar786写道: > > Loggin not working , > > Please Help Me, > > Admi

user login not working anyone please help

2019-12-15 Thread Sai Yuva Teja Gorthy
github repo is https://github.com/Yuvateja01/project.please help -- 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 vi

Re: Simple User login not working.

2014-03-20 Thread C. Kirby
If you are using stock User accounts why are you writing a login view? Just use django.contrib.auth.views.login You can pass it your own template in the url definition url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name='login' ) On Wednesday, March 1

Re: Simple User login not working.

2014-03-20 Thread Venkatraman S
I cannot see the screenshot, but two things: 1. Why GET? :-/ 2. Did you check if the users are 'active'? i.e, active flag set? -Venkat On Thu, Mar 20, 2014 at 1:51 AM, Don Fox wrote: > My project has two superusers who have access to the Django Administration > and who manually add about 15 Us

Simple User login not working.

2014-03-19 Thread Don Fox
My project has two superusers who have access to the Django Administration and who manually add about 15 Users who should then be able to login and use the site to do data entry. I'm using the standard code in my views *def auth_view(request):* *username = request.POST.get('username',' ')*

Re: Login not working.

2013-09-07 Thread Arun K Reddy
Nigel..the problem with your code is..the view is getting confused with the view name with original django login method. So, renaming you view is a great idea but istead you can do this from django.contrib.auth import login as auth_login and call auth_login instead of login after form validation.

Re: Login not working.

2013-09-07 Thread Vibhu Rishi
Hi Nigel, You could also try using django-registration . I found that it made a lot of the things I was trying with user login/registration easier. Vibhu On Fri, Sep 6, 2013 at 8:05 PM, Nigel Legg wrote: > I have removed the form.is_valid check and renamed the view, this now > works (except

Re: Login not working.

2013-09-06 Thread Nigel Legg
I have removed the form.is_valid check and renamed the view, this now works (except for not directing to the correct page, it does appear to be logging in now) Thanks! Cheers, Nigel 07914 740972 On 6 September 2013 14:35, Nigel Legg wrote: > I am using django.contrib.auth, and have created th

Login not working.

2013-09-06 Thread Nigel Legg
I am using django.contrib.auth, and have created the folowing: view: def login(request): if request.method == 'POST': form = AuthenticationForm(request.POST) if form.is_valid(): username = request.POST['username'] password = request.POST['password']

Re: Login not working: Site matching query does not exist.

2006-08-21 Thread cyberco
Thank you very much! That was indeed the issue. There was a site in the db, but apparently things were corrupt. Removing all sites and adding a new one via the admin interface solved the problem. Not sure if that is a bug or a feature :) Your query works as well (although 'domain' and 'name' shou

Re: Login not working: Site matching query does not exist.

2006-08-21 Thread Ian Holsman
your missing the site record. go into your database and create a record with the site_id from your project file eg. insert into django_site(id,name,domain) values (N, 'example','example.com') where 'N' is your SITE_ID. On 21/08/2006, at 6:40 PM, cyberco wrote: > > I'm still having this pr

Re: Login not working: Site matching query does not exist.

2006-08-21 Thread cyberco
I'm still having this problem (neglected it for a while, but now is the time I MUST solve it). Has anybody here a suggestion in which direction to search? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: Login not working: Site matching query does not exist.

2006-08-03 Thread cyberco
Is anybody else having this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send emai

Login not working: Site matching query does not exist.

2006-08-01 Thread cyberco
Login a user out works fine, but I can't get logging in working (0.95). I keep getting 'Site matching query does not exist'. What I got: urls.py: (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'registration/login.html'}), (r'^accounts/logout/$', 'django.c