Re: Django Login Problem

2020-03-29 Thread ramadhan ngallen
Why your templates shows some of the codes like {% csrf_token %}, for loops   and so on? Check your templates first are not okay. After signup log in to the admin panel as an admin and check if the user has been created on the database. You can also log in to your database to inspect this. Does

Re: Django Login Problem

2020-03-29 Thread Antje Kazimiers
Hi, It sounds like you don't get an error message, so maybe your authenticate method in def sign_in(request) just returns a None user and you get redirected. I would find this method in your django installation, for me it's in the env folder but that depends on your setup: ./env/lib/python3.

Django Login Problem

2020-03-29 Thread pratiksha jain
I have problem in loging in after signing up. I have tried all the methods that I can try, I want to know my errors. 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, sen

Re: Admin login problem

2020-02-26 Thread Naveen Arora
Share all of the code related to this model what you have overriden from nodel to admin registeration part also. Also check through terminal if superuser has been created successfully. Did you override something related to login part too..? Share code please. On Wednesday, 26 February 2020 17:5

Re: Admin login problem

2020-02-26 Thread Naveen Arora
Hi soumen, Are you overriding default user model, if yes check user.is_admin=True. or else, Please post the exact error Cheers Naveen Arora On Wednesday, 26 February 2020 17:43:51 UTC+5:30, Soumen Khatua wrote: > > Hi Folks, > after creating superuser by using this command python manage.py > c

Admin login problem

2020-02-26 Thread Soumen Khatua
Hi Folks, after creating superuser by using this command python manage.py createsuperuser. Whenever I'm entering the same(exact) login credentials.I'm getting this error: Please enter the correct phone number and password for a staff account. Notethat both fields may be case-sensitive .

Re: Simple Login Problem

2014-11-30 Thread Rootz
Apparently caching was enable. Now that I know I disable caching and now it is working now.. thanks :) On Sunday, November 30, 2014 1:32:27 PM UTC-5, Collin Anderson wrote: > > Hi, > > If you type your password wrong, user will be None, and your code will > then redirect to the "register" page.

Re: Simple Login Problem

2014-11-30 Thread Collin Anderson
Hi, If you type your password wrong, user will be None, and your code will then redirect to the "register" page. If you press "back" after a successful login, the CSRF token will be out of date and the form won't work. Are you caching any pages? Collin On Friday, November 28, 2014 12:55:35 A

Simple Login Problem

2014-11-27 Thread Rootz
I have a django app but I having problems with my login views and logout views. I do not have a html template designated to handle user login/logout view. Django project is configured as follows: INSTALLED_APPS se

Re: facebook login problem

2012-03-05 Thread dummyman dummyman
Hi i tried tat code and im getting d same error Please help me out here are specifications use facebook login. and once the user logins get his id and using his id get basic information and also get other information like books etc using access token get the json object please provide the deta

Re: facebook login problem

2012-02-29 Thread Vignesh Sunder
This might help you in managing the session. I had a similar problem a year ago and used the following snippet: http://djangosnippets.org/snippets/2065/ Cheers! On Wed, Feb 29, 2012 at 5:29 PM, dummyman dummyman wrote: > Hi , i am using django framework at the back end > > I have used facebook

facebook login problem

2012-02-29 Thread dummyman dummyman
Hi , i am using django framework at the back end I have used facebook s social plugin login for authentication My Facebook Login Page http://connect.facebook.net/en_US/all.js";> FB.init({ appId:'My_app_id', cookie:true,

Re: New user login problem

2011-09-16 Thread marios
: 00431 534521573 > > > Fax: +43 (1) 534 52 - 146 > > > > -Ursprüngliche Nachricht- > > > > Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] > > Im Auftrag von marios > > > Gesendet: Freitag, 16. September 2011 13:14

Re: New user login problem

2011-09-16 Thread Jacco Flenter
t; mailto:patrick.sz...@lexisnexis.at > > Tel.: 00431 534521573 > > Fax: +43 (1) 534 52 - 146 > > > > -Ursprüngliche Nachricht- > > > > Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] > Im Auftrag von marios > > Gesend

Re: New user login problem

2011-09-16 Thread marios
> >> LexisNexis > >> Marxergasse 25, 1030 Wien > > >> mailto:patrick.sz...@lexisnexis.at > >> Tel.: 00431 534521573 > >> Fax: +43 (1) 534 52 - 146 > > >> -Ursprüngliche Nachricht----- > > >> Von: django-users@googlegroups.com   &

Re: New user login problem

2011-09-16 Thread Martin Tiršel
521573 Fax: +43 (1) 534 52 - 146 -Ursprüngliche Nachricht- Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im Auftrag von marios Gesendet: Freitag, 16. September 2011 13:14 An: Django users Betreff: New user login problem I am a new user of Django with not muc

Re: New user login problem

2011-09-16 Thread marios
> -Ursprüngliche Nachricht- > > Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im > Auftrag von marios > Gesendet: Freitag, 16. September 2011 13:14 > An: Django users > Betreff: New user login problem > > I am a new user of Dja

AW: New user login problem

2011-09-16 Thread Szabo, Patrick (LNG-VIE)
t Tel.: 00431 534521573 Fax: +43 (1) 534 52 - 146 -Ursprüngliche Nachricht- Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im Auftrag von marios Gesendet: Freitag, 16. September 2011 13:14 An: Django users Betreff: New user login problem I am a new user of D

New user login problem

2011-09-16 Thread marios
I am a new user of Django with not much experience in programming. I am following the tutorial. In the Administration module I have created a new user with some permissions, but when I try to logging in as this new user appear an error message ("Wrong user or password") Could you help me? -- You

Re: Login problem, django does not remember user

2010-04-16 Thread chris_ingenhaag
Argh yes, of course. Thank you, thats it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.co

Re: Login problem, django does not remember user

2010-04-16 Thread Tim Shaffer
I suspect you have a clash in names here. You have two methods named "login": 5: from django.contrib.auth import authenticate, login 9: def login(request, template_name='auth/login.html'): So when you call login(request, user) on line 21, it's calling the method you created on line 9, not the log

Login problem, django does not remember user

2010-04-16 Thread chris_ingenhaag
Hi all, i would like to user a simple captcha during login to a web application. Because of this I wrote my own login view like in the django documentation, in short: form.is_valid() authenticate(username='user', password='pass') login(request, user) For deteil here is the full code of the login

Re: New user login problem

2009-11-14 Thread Zeynel
I figured that "active" and "staff" need to be checked as explained here: http://docs.djangoproject.com/en/dev/faq/admin/ Does anybody know how to make admin "view only" for a user? This paragraph from the above appears to explain a similar process: How do I limit admin access so that objects ca

New user login problem

2009-11-14 Thread Zeynel
Hello, I am creating a new user successfully but I cannot login with that new user. I make sure that username and pw (case sensitive) are correct. Is there more to creating a new user? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: login problem

2008-12-16 Thread vierda
Hi Matius, Thank you for your clue, I have modified my code and it run exactly like I want. My code as following below: def my_view(request): username = [] password = [] if request.method == "POST" : username = request.POST['username'] password = request.POST['password']

Re: login problem

2008-12-16 Thread brandonh
I just use the get method on the POST object. username = request.POST.get('username','') if there is no username posted, the username will be blank and should not authenticate. same for the password. On Dec 16, 9:39 am, Matias wrote: > Hello, > > You should show the login if the method != "POS

Re: login problem

2008-12-16 Thread Matias
Hello, You should show the login if the method != "POST". By calling render_to_response(...) it will render your template, so that is what the view must return. I think you want something like this: def my_view(request): if request.method == "POST" : username = request.POST['username']

Re: login problem

2008-12-16 Thread Matias
Hello, You should show the login if the method != "POST". By calling render_to_response(...) it will render your template, so that is what the view must return. I think you want something like this: def my_view(request): if request.method == "POST" : username = request.POST['username']

Re: login problem

2008-12-15 Thread vierda
Hi Matias, Thanks for your reply but I did'nt get your point. sorry I'm newbie and still learning. I modified my_view function in my views as your suggestion (if I didn't wrong get your point) as per below: def my_view(request): if request.method == "POST" : username = request.POST['use

Re: login problem

2008-12-15 Thread Matias
Hello, You should check by which method was called your view. something like if request.method == "POST": #now you can use request.POST else: #just show the template Hope that helps, Matias. On Mon, Dec 15, 2008 at 5:15 AM, vierda wrote: > > Dear Ronny/all, > > Thank you for your re

Re: login problem

2008-12-14 Thread vierda
Dear Ronny/all, Thank you for your reply. I have modified my code and the error still occur. my new code as following below: def my_view(request): username = request.POST['username'] password = request.POST['password'] user = authenticate(username=username, password=password)#create Au

Re: login problem

2008-12-06 Thread Ronny Haryanto
On Sat, Dec 6, 2008 at 2:42 PM, vierda <[EMAIL PROTECTED]> wrote: > today I try to make login page with follow example code in > djangoproject (user authentication chapter), code as following below : > > def my_view(request): > username = request.POST['username'] > password = request.POST['pas

login problem

2008-12-05 Thread vierda
Dear All, today I try to make login page with follow example code in djangoproject (user authentication chapter), code as following below : def my_view(request): username = request.POST['username'] password = request.POST['password'] user = authenticate(username=username, password=pass

Re: login problem, Django 1.0

2008-10-14 Thread KillaBee
On Oct 10, 12:02 pm, Robocop <[EMAIL PROTECTED]> wrote: > Unfortunately, that is the explanation.  I really appreciate all the > help though; how disappointing that i didn't learn anything other than > not allowing anyone to touch my projects without me around. > > On Oct 10, 9:59 am, "Karen Tra

Re: login problem, Django 1.0

2008-10-10 Thread Robocop
Unfortunately, that is the explanation. I really appreciate all the help though; how disappointing that i didn't learn anything other than not allowing anyone to touch my projects without me around. On Oct 10, 9:59 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 10, 2008 at 12:51 PM,

Re: login problem, Django 1.0

2008-10-10 Thread Karen Tracey
On Fri, Oct 10, 2008 at 12:51 PM, Robocop <[EMAIL PROTECTED]> wrote: > > Bad news guys, someone deactivated my test user and didn't tell me. > I'm so sad. > Do you mean that is the explanation for why auth.login hasn't been working? Or is there still a problem that needs to be investigated? Kare

Re: login problem, Django 1.0

2008-10-10 Thread Robocop
Bad news guys, someone deactivated my test user and didn't tell me. I'm so sad. --~--~-~--~~~---~--~~ 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

Re: login problem, Django 1.0

2008-10-10 Thread Robocop
Also worth noting: I tried using the built in django.contrib.views.login, but that resulted in the same behavior. Did some automagic default session setting in django .96 get changed to something that needs to be manually set in 1.0? --~--~-~--~~~---~--~~ You recei

Re: login problem, Django 1.0

2008-10-10 Thread Robocop
Sorry for the sloppy post, i was reposting an old ignored thread in my frustrated rage. The code i'm working with right now looks like: from django.contrib import auth def log(request): news_list = New.objects.all().order_by('-date') if request.method == 'POST': username = request.POST

Re: login problem, Django 1.0

2008-10-09 Thread Karen Tracey
On Thu, Oct 9, 2008 at 5:18 PM, Robocop <[EMAIL PROTECTED]> wrote: > > Having looked through the archived posts, i found a similar problem > that had found no solution: > http://groups.google.com/group/django-users/browse_thread/thread/bf05... > I get a 'topic not found' error from Google Groups

Re: login problem, Django 1.0

2008-10-09 Thread Colin Bean
On Thu, Oct 9, 2008 at 4:15 PM, Robocop <[EMAIL PROTECTED]> wrote: > > > actually i read that wrong, i do not know what path it is being sent > to. I think that's the root path... you can verify in firefox if you look under preferences > privacy > show cookies. You said you moved from a dev set

Re: login problem, Django 1.0

2008-10-09 Thread Robocop
actually i read that wrong, i do not know what path it is being sent to. --~--~-~--~~~---~--~~ 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 uns

Re: login problem, Django 1.0

2008-10-09 Thread Robocop
Cookie=sessionid=6bc37c43a444db3aaf60a5c61e85bb01; support_tabs=0 Content-Type=application/x-www-form-urlencoded Content-Length=52 POSTDATA=username=moneybags&password=dollars&next=%2F&x=0&y=0 this is the relevant tamperdata output, though i'm not necessarily sure how to check if the session coo

Re: login problem, Django 1.0

2008-10-09 Thread Robocop
Cookie=sessionid=6bc37c43a444db3aaf60a5c61e85bb01; support_tabs=0 Content-Type=application/x-www-form-urlencoded Content-Length=52 POSTDATA=username=moneybags&password=dollars&next=%2F&x=0&y=0 this is the relevant tamperdata output, though i'm not necessarily sure how to check if the session coo

Re: login problem, Django 1.0

2008-10-09 Thread Colin Bean
On Thu, Oct 9, 2008 at 3:25 PM, Robocop <[EMAIL PROTECTED]> wrote: > > All right, this is getting absolutely ridiculous. I tried to > workaround my problems by using the built in contrib.auth.views.login, > and of course this resulted in the same behavior. I am very reluctant > to think this is

Re: login problem, Django 1.0

2008-10-09 Thread Robocop
I'm going to burn my server down, i could really use some help. --~--~-~--~~~---~--~~ 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 f

Re: login problem, Django 1.0

2008-10-09 Thread Robocop
All right, this is getting absolutely ridiculous. I tried to workaround my problems by using the built in contrib.auth.views.login, and of course this resulted in the same behavior. I am very reluctant to think this is a bug, but rather some type of session misunderstanding, but i'm running out

login problem, Django 1.0

2008-10-09 Thread Robocop
Having looked through the archived posts, i found a similar problem that had found no solution: http://groups.google.com/group/django-users/browse_thread/thread/bf05... It looks like django is not actually logging my user in, or not creating a session. I have a very simple snippet for login func

Vague, annoying, login problem

2008-10-03 Thread Robocop
I'm running out of ideas, so i decided to see if anyone could offer any advice on a problem i'm having. I'm trying to finish up a site with some 'dummy' login functionality. Dummy meaning that it doesn't do anything right now besides offer demographic information through registration, so it's ve

Re: Vague, annoying, login problem

2008-10-02 Thread Robocop
fixed. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more

Re: Vague, annoying, login problem

2008-10-02 Thread Robocop
I just realized why the images are not loading; the images are served by appending the file path to the url, but when they try to append mysite.com/login/imagefilepath it can't find them as there is no login directory. My question now is how do i work around this, i haven't thought of a workaroun

Re: testing login problem

2008-07-03 Thread laspal
Hey I am able to run the test by using : class IndustryTest(TestCase): fixtures = ['/fixtures/initial_data.xml'] def setUp(self): self.client = Client() response =self.client.post('/ibms/login/', {'username':'laspal', 'password':'abcd'}) def test_addIndustry( self):

Re: testing login problem

2008-07-03 Thread laspal
Hey I am able to run the test by using : class IndustryTest(TestCase): fixtures = ['/fixtures/initial_data.xml'] def setUp(self): self.client = Client() response =self.client.post('/ibms/login/', {'username':'laspal', 'password':'abcd'}) def test_addIndustry( self):

Re: testing login problem

2008-07-03 Thread Nick Sandford
On Thu, Jul 3, 2008 at 2:18 PM, laspal <[EMAIL PROTECTED]> wrote: > > Hi, > Thanks for the help but still I am not able to login in my test > client.. > > here is the code: > > from django.test import TestCase > from django.test.client import Client > > class IndustryTest(TestCase): >fixtures

Re: testing login problem

2008-07-02 Thread laspal
Hi, Thanks for the help but still I am not able to login in my test client.. here is the code: from django.test import TestCase from django.test.client import Client class IndustryTest(TestCase): fixtures = ['/fixtures/initial_data.xml'] def setUp(self): self.client = Client()

Re: testing login problem

2008-07-02 Thread Russell Keith-Magee
On Wed, Jul 2, 2008 at 10:14 PM, Norman Harman <[EMAIL PROTECTED]> wrote: > > Test system creates a new test database from scratch every time it is > run. manage.py loaddata has NO effect on test. > > I could be wrong but I don't believe test runner automatically loads the > fixture initial_data.

Re: testing login problem

2008-07-02 Thread [EMAIL PROTECTED]
You can check my dump of manage.py test (ran as root) here; http://dpaste.com/60433/ As you can see the fixture load runs OK... and I even got a couple of errors on the load process! That sure confirms the fixtures load ;-) Tests run fine though. On Jul 2, 4:14 pm, "Norman Harman" <[EMAIL PROTEC

Re: testing login problem

2008-07-02 Thread Norman Harman
laspal wrote: > Hi, > I have created initial_data.xml using dumpdata and > """manage.py loaddata initial_data.xml""" gives me no error. > but still I am not able to login using setUp().. and this is > essential as all my views functions required login.. > > here is my test file: > > import un

Re: testing login problem

2008-07-02 Thread laspal
Hi, I have created initial_data.xml using dumpdata and """manage.py loaddata initial_data.xml""" gives me no error. but still I am not able to login using setUp().. and this is essential as all my views functions required login.. here is my test file: import unittest from django.test import

Re: testing login problem

2008-07-01 Thread [EMAIL PROTECTED]
> How do I create username and password for the test database. What I do is either create a test user on SetUp(), or put that username inside the "initial_data" fixture, which loads automatically when Django creates the test DB... HTH, Carlos --~--~-~--~~~---~--~

Re: testing login problem

2008-07-01 Thread laspal
How do I create username and password for the test database. On Jul 1, 2:24 pm, Julien <[EMAIL PROTECTED]> wrote: > Hi, > > If you're using the SVN version you can try: > > >>> c = Client() > >>> c.login(username='fred', password='secret') > > More info here:http://www.djangoproject.com/document

Re: testing login problem

2008-07-01 Thread Julien
Hi, If you're using the SVN version you can try: >>> c = Client() >>> c.login(username='fred', password='secret') More info here: http://www.djangoproject.com/documentation/testing/ On Jul 1, 5:51 pm, laspal <[EMAIL PROTECTED]> wrote: > Hi, > > I am writing the test case but I am getting error

testing login problem

2008-07-01 Thread laspal
Hi, I am writing the test case but I am getting errors. Test case is as follows: import unittest from django.test.client import Client from django.contrib.auth.models import User, Group from ibm.crm.models import Industry class IndustryTest(unittest.TestCase): def setUp(self): se

user login problem

2008-06-21 Thread R. K.
So the problem is, that I can't login regular users, who has is_staff field set to false. If it is set to true, everything is fine. So now what I have: default login function (django.contrib.auth.views.login) and the view which renders the page after login has django.contrib.auth.decorators.login_

Re: 0.96 custom django login problem

2008-03-06 Thread Evert Rol
> I am new to django, and I am trying to create a custom login > application, from where the users might get access to other > applications in the system. I can not get it to work, please, I need > help. Well, what exactly isn't working? That may give people a better start on where to look than

0.96 custom django login problem

2008-03-06 Thread azormx
Hi, I am new to django, and I am trying to create a custom login application, from where the users might get access to other applications in the system. I can not get it to work, please, I need help. Project structure: txm--+--profile +--app1 +-- ap2 txm.urls ###

Re: Redirect after login problem

2007-09-30 Thread Paddy Joy
Thanks guys, I didn't fully understand the meaning of "redirect_field_name". @login_required() on it's own works as expected. Paddy On Sep 30, 3:19 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 9/29/07, Paddy Joy <[EMAIL PROTECTED]> wrote: > > > views.py > > @login_required(redirect_fiel

Re: Redirect after login problem

2007-09-29 Thread James Bennett
On 9/29/07, Paddy Joy <[EMAIL PROTECTED]> wrote: > views.py > @login_required(redirect_field_name='/login/') > def index(request) You're using the 'redirect_field_name' argument incorrectly. The default value is 'next', which means Django will expect something like this: http://yoursite.com/acc

Re: Redirect after login problem

2007-09-29 Thread Przemek Gawronski
Hi > I'm using the following code, anyone got any ideas what could be > wrong? > @login_required(redirect_field_name='/login/') My guess is, that it should be: @login_required(redirect_field_name='/hosting/login/') > urls.py > # Login > (r'^hosting/login/$', 'django.contrib.auth.views.login',

Redirect after login problem

2007-09-29 Thread Paddy Joy
I'm having some problems getting the "next" variable to work in the authentication module. After a user is logged in the page is redirected to /accounts/profile rather than being directed to the "next" variable. I'm using the following code, anyone got any ideas what could be wrong? views.py @l

Re: Admin login problem

2006-12-15 Thread Yatla
Jorge, Turns out that I did need to modify the url as you indicated like (r'^galeria/admin/', include('django.contrib.admin.urls')), the first time the site or my browser must have been caching something and it seemed to work. Now onwards to build the site Yatla On Dec 13, 4:35 pm, "Yatla"

Re: Admin login problem

2006-12-13 Thread Yatla
Jorge, Many thanks! I was using an .htaccess in the subdirectory, but did not have the subdirectory specified after the fcgi file in the last rewrite rule. I don't know much about this so just copied from a tutorial on this that did not have the subdirectory in the rewriterule. Thanks again!

Re: Admin login problem

2006-12-13 Thread Jorge Gajon
On 12/12/06, Yatla <[EMAIL PROTECTED]> wrote: > > Newbie here - saw that the same question was asked earlier but not > answered, and the post was locked so I could not reply. > > I have a Django site in a subdirectory as follows (via fcgi) - (using > ver 0.96 pre via svn) > > http://mydomain.com/d

Admin login problem

2006-12-12 Thread Yatla
Newbie here - saw that the same question was asked earlier but not answered, and the post was locked so I could not reply. I have a Django site in a subdirectory as follows (via fcgi) - (using ver 0.96 pre via svn) http://mydomain.com/dj When I go into the Admin area as follows http://mydomain

Re: Admin login Problem (not the one in the FAQ)

2005-09-02 Thread Boffbowsh
or md5 -s 'password'

Re: Admin login Problem (not the one in the FAQ)

2005-09-01 Thread igor
Quoting "J. Davis" <[EMAIL PROTECTED]>: > > # echo "password" | md5sum > > Can anyone suggest how else I might troubleshoot this? You should use: echo -n "password" | md5sum Igor.

Re: Admin login Problem (not the one in the FAQ)

2005-09-01 Thread J. Davis
That did the trick. Thanks Adrian! -Jake

Re: Admin login Problem (not the one in the FAQ)

2005-09-01 Thread Adrian Holovaty
On 9/1/05, J. Davis <[EMAIL PROTECTED]> wrote: > To create the password I paste in the output from the following > command: > > # echo "password" | md5sum > > Can anyone suggest how else I might troubleshoot this? It appears the md5sum shell command doesn't generate the same output as Python's

Admin login Problem (not the one in the FAQ)

2005-09-01 Thread J. Davis
Hello, I'm greatly enjoying this excellent project. However, I have a problem with users created through the admin web interface being able to log into the admin site. I get "Please enter a correct username and password." Even though all users have "is_active" and "is_staff" set to True. It's defi