Re: Django Admin Login

2021-11-09 Thread Aashish Kumar
Just make the path blank of admin.site.url in main urls.py file On Tue, 9 Nov 2021 at 11:38 PM, webmbackslash wrote: > Habdle it in urls.py file. > But are you sure you want all your site viewed in admin mode? > > Il mar 9 nov 2021, 15:21 Abhi Sharma ha scritto: > >> Hello, >> We have a Django

Re: Django Admin Login

2021-11-09 Thread webmbackslash
Habdle it in urls.py file. But are you sure you want all your site viewed in admin mode? Il mar 9 nov 2021, 15:21 Abhi Sharma ha scritto: > Hello, > We have a Django admin URL like https://abc.com/admin/, it's working fine > however we want to proxy with a domain for admin url like

Django Admin Login

2021-11-09 Thread Abhi Sharma
Hello, We have a Django admin URL like https://abc.com/admin/, it's working fine however we want to proxy with a domain for admin url like https://abc.com/ We want to remove */admin* from the URL. Regards, Abhishek -- You received this message because you are subscribed to the Google Groups

Re: Django Admin Login will not Redirect following Authentication on Remote Host

2019-07-12 Thread Sidnei Pereira
Hahahaha I'm glad it helped! I will probably add this answer to your stackoverflow question. Maybe it will help someone else. -- 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,

Re: Django Admin Login - Redirecting back to login page

2014-06-24 Thread Aaron Reabow
also try: LOGIN_REDIRECT_URL On Tuesday, 24 June 2014 16:55:21 UTC+2, Sergiy Khohlov wrote: > > Hello, > > Could you please paste your LOGIN_URL from your settings.py > > > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > > On Tue, Jun 24, 2014 at 5:40 PM, Діма Ревуцький

Re: Django Admin Login - Redirecting back to login page

2014-06-24 Thread Sergiy Khohlov
Hello, Could you please paste your LOGIN_URL from your settings.py Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Jun 24, 2014 at 5:40 PM, Діма Ревуцький wrote: > I had same problem > In settings remove SESSION_COOKIE_DOMAIN or set correct domain > >

Re: Django Admin Login - Redirecting back to login page

2014-06-24 Thread Діма Ревуцький
I had same problem In settings remove SESSION_COOKIE_DOMAIN or set correct domain понедельник, 6 июня 2011 г., 13:57:11 UTC+3 пользователь Aidan написал: > > I'm having trouble with the Django Admin. My login page appears ok at > http://127.0.0.1:8000/admin but when I try to login with a valid

Re: How do I create a script to fill in django admin login form and submit?

2013-08-21 Thread 7equivalents
Thank you so much! You really helped me. I went back and checked the source code sent to my browser and did indeed see, name = "this_is_the_login_form'. I was using the "ID" rather than the "name". My weakness in html kicked me this time, thanks for lending a hand! > > > > -- You

Re: How do I create a script to fill in django admin login form and submit?

2013-08-21 Thread Kelvin Wong
I've used Requests in the past. All I did was load the page in Chrome and then I looked at what was being sent and compared it to what your script was sending. When I added the missing key it worked. Trial and error. :) K On Wednesday, August 21, 2013 8:48:16 AM UTC-7, 7equiv...@gmail.com

Re: How do I create a script to fill in django admin login form and submit?

2013-08-21 Thread 7equivalents
Thankyou Wongo Bongo! Your solution was spot on correct. It came down to one line of code that I modified that was the problem. login_data = {'username':'jim', 'password':'beam', 'this_is_the_login_form':'1', 'csrfmiddlewaretoken':csrftoken} You gave me the correct line, however the,

Re: How do I create a script to fill in django admin login form and submit?

2013-08-21 Thread 7equivalents
Still trying to solve this. I cant seem to find anything by googling. I did read this. https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.login However, when I'm doing this from the shell, I'm not sure what to use as request in the Login(request,user) function.

Re: How do I create a script to fill in django admin login form and submit?

2013-08-20 Thread 7equivalents
I feel as if I'm getting closer, yet haven't successfully logged in yet. I have added in the missing key. I went to the django.contrib.auth.forms to find the name of the form that gets submitted in the login page. It seems to be called AuthenticationForm. import requests login_url =

Re: How do I create a script to fill in django admin login form and submit?

2013-08-18 Thread Kelvin Wong
You were missing a key. The following works on my machine. K --- import requests login_url = "http://192.168.0.21/admin/login/; client = requests.session() client.get(login_url) csrftoken = client.cookies['csrftoken'] login_data = {'username':'jim', 'password':'beam',

Re: How do I create a script to fill in django admin login form and submit?

2013-08-18 Thread 7equivalents
Ok, I've gotten further. I have confirmed the problem was related to the csrf token. This is my new code: client = requests.session() # Retrieve the CSRF token first client.get(URL) # sets the cookie csrftoken = client.cookies['csrftoken'] login_data = dict(Username='jim', Password='beam,

Re: How do I create a script to fill in django admin login form and submit?

2013-08-18 Thread 7equivalents
Ok, I've gotten further. I have confirmed the problem was related to the csrf token. This is my new code: client = requests.session() # Retrieve the CSRF token first client.get(URL) # sets the cookie csrftoken = client.cookies['csrftoken'] login_data = dict(Username='jim', Password='beam,

Re: How do I create a script to fill in django admin login form and submit?

2013-08-18 Thread 7equivalents
Well this is where I'm at. I have used the requests package to try and request the Django Admin login page and submit the username and password. However, when I do this I get a 403 error. I have tried to turn off the dependency for csrf tokens in the login view by using the csrf_exempt

Re: How do I create a script to fill in django admin login form and submit?

2013-08-14 Thread Elena Williams
use this rfid tag > number to fill in the password feild and submit the django Admin login form. > I'm still a novice and Any advise is appreciated... Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To u

Re: How do I create a script to fill in django admin login form and submit?

2013-08-14 Thread Kelvin Wong
ata comes from an RFID tag > reader. I have that working. What I'd like to do is use this rfid tag > number to fill in the password feild and submit the django Admin login form. > I'm still a novice and Any advise is appreciated... Thanks! > -- You received this message becau

How do I create a script to fill in django admin login form and submit?

2013-08-13 Thread 7equivalents
Here is what I'm doing. I have written a script the runs and monitors a serial connection for incoming data. The data comes from an RFID tag reader. I have that working. What I'd like to do is use this rfid tag number to fill in the password feild and submit the django Admin login form. I'm

django-admin login doubt

2012-03-24 Thread dummyman dummyman
Hi, Is there a way to prevent django asking username and password from 127.0.0.1:8000/admin or any other form in admin ? -- 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

Re: django admin login

2012-03-15 Thread dummyman dummyman
yes its the same username and passwd for database are also same On Thu, Mar 15, 2012 at 10:10 PM, Joel Goldstick wrote: > On Thu, Mar 15, 2012 at 7:40 AM, dummyman dummyman > wrote: > > Hi > > Still its not working :( getting the same error > > On

Re: django admin login

2012-03-15 Thread Joel Goldstick
On Thu, Mar 15, 2012 at 7:40 AM, dummyman dummyman wrote: > Hi > Still its not working :( getting the same error > On Thu, Mar 15, 2012 at 12:59 PM, vikalp sahni > wrote: >> >> ITS in settigns.py file. >> >> if its not there just write.g >> >>

Re: django admin login

2012-03-15 Thread dummyman dummyman
Hi Still its not working :( getting the same error On Thu, Mar 15, 2012 at 12:59 PM, vikalp sahni wrote: > ITS in settigns.py file. > > if its not there just write.g > > SESSION_COOKIE_DOMAIN = "localhost" and then try. > > Regards, > //Vikalp > > > On Wed, Mar 14, 2012 at

Re: django admin login

2012-03-15 Thread vikalp sahni
ITS in settigns.py file. if its not there just write. SESSION_COOKIE_DOMAIN = "localhost" and then try. Regards, //Vikalp On Wed, Mar 14, 2012 at 11:48 PM, dummyman dummyman wrote: > Wer is the SESSION_COOKIE_DOMAIN ? > > > On Wed, Mar 14, 2012 at 11:32 PM, dummyman

Re: django admin login

2012-03-14 Thread dummyman dummyman
Wer is the SESSION_COOKIE_DOMAIN ? On Wed, Mar 14, 2012 at 11:32 PM, dummyman dummyman wrote: > hi > > i got this error msg > > Please enter a correct username and password. Note that both fields are > case-sensitive. > > > On Wed, Mar 14, 2012 at 11:21 PM, vikalp sahni

Re: django admin login

2012-03-14 Thread dummyman dummyman
hi i got this error msg Please enter a correct username and password. Note that both fields are case-sensitive. On Wed, Mar 14, 2012 at 11:21 PM, vikalp sahni wrote: > Can you share your SESSION_COOKIE_DOMAIN setting. In your settings.py file. > > Also, is there any

Re: django admin login

2012-03-14 Thread vikalp sahni
Can you share your SESSION_COOKIE_DOMAIN setting. In your settings.py file. Also, is there any error message which is displayed on top of login form when you try to login? Regards, //Vikalp On Wed, Mar 14, 2012 at 11:06 PM, dummyman dummyman wrote: > hi .. > > I created a

Re: django admin login

2012-03-14 Thread dummyman dummyman
hi .. I created a superuser but still getting the same error @vikalp: But it works for other projects with the same superuser name and password On Wed, Mar 14, 2012 at 10:57 PM, Denis Darii wrote: > Try to create your superuser again: > > ./manage.py createsuperuser > >

Re: django admin login

2012-03-14 Thread Denis Darii
Try to create your superuser again: ./manage.py createsuperuser On Wed, Mar 14, 2012 at 6:25 PM, vikalp sahni wrote: > You have to check your > > SESSION_COOKIE_DOMAIN in settings file if i.e pointing to "localhost" (if > not cookies will not properly set and hence

Re: django admin login

2012-03-14 Thread vikalp sahni
You have to check your SESSION_COOKIE_DOMAIN in settings file if i.e pointing to "localhost" (if not cookies will not properly set and hence login will not be allowed) the best would be to use some host entry like example.com 127.0.0.1 and then use that in SESSION_COOKIE_DOMAIN and for accessing

django admin login

2012-03-14 Thread dummyman dummyman
Hi, I created a new project in django 1.I created a new database 2. I created a new user 3.python manage syncdb 4.python manae.py runserver when i visit localhost:8080/admin -> it asks for username n passwd. but the login fails inspite of entering correct one But it works for a different

Re: Django Admin Login - Redirecting back to login page

2011-06-06 Thread Aidan
Have commented out the 'SESSION_COOKIE_SECURE' and 'SESSION_EXPIRE_AT_BROWSER_CLOSE' from the settings.py file. This has fixed the problem and I can now log in to admin. On Jun 6, 1:33 pm, Aidan wrote: > Thanks for the input. > > I've tried deleting all .pyc files and still

Re: Django Admin Login - Redirecting back to login page

2011-06-06 Thread Aidan
Thanks for the input. I've tried deleting all .pyc files and still get the same issue. Also checked the cookies - I've got one sessionid and one csrftoken, so that doesn't look like the issue. I've tried using the chrome javascript debugger to look for 404's and haven't found any. I haven't

Re: Django Admin Login - Redirecting back to login page

2011-06-06 Thread Karen Tracey
On Mon, Jun 6, 2011 at 6:57 AM, Aidan wrote: > I'm having trouble with the Django Admin. My login page appears ok at > http://127.0.0.1:8000/admin but when I try to login with a valid > username or password the page seems to refresh - it reappears with > text boxes empty. It

Re: Django Admin Login - Redirecting back to login page

2011-06-06 Thread Martin
Oh and: - delete all *.pyc files from your project and restart the development server <-- this is a nice one that often solves mysterious problems that seem to be impossible and drive you insane Best regards, Martin On Mon, Jun 6, 2011 at 7:13 PM, Martin

Re: Django Admin Login - Redirecting back to login page

2011-06-06 Thread Martin
I faced this a long time ago and it nearly drove me insane. Eventually I just started a new project from scratch and the problem disappeared. Wild guesses: - Open the JavaScript debug toolbar of Google Chrome (CTRL+SHIFT+J), then reload the site and see if there are any 404 errors (that

Django Admin Login - Redirecting back to login page

2011-06-06 Thread Aidan
I'm having trouble with the Django Admin. My login page appears ok at http://127.0.0.1:8000/admin but when I try to login with a valid username or password the page seems to refresh - it reappears with text boxes empty. It doesn't display any errors on the page (logging in with invalid username /

Django admin login failure

2010-01-29 Thread toinbis
com/2009/jan/17/installing-django-ubuntu-intrepid/. Nginx (listening on 127.0.0.1:8003) is running beyond Apache(listening on 127.0.0.1:8001), configurations of both servers are provided at the end of the post. I'm accessing my django app as 127.0.0.1:8003. So, 127.0.0.1:8003/admin/ opens django admi