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
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 https://abc.c
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
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, send
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, Діма Ревуцький > w
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
>
> понедельник, 6 июня 2011
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
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 received
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 w
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, 'this_is_t
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.
Also
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 = "http://19
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',
'this_is_the_login
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, csrf
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, csrf
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_exemp
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 because you are subscribed to the Google Groups
> "Django users&
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 still a novice and Any advise is appreciated... Thanks!
>
--
You received this messa
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
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 unsu
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 Thu, Mar 15, 2012 at 12:59 PM, vikalp sahni
> >
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
>>
>> SESSION_COOKIE_DOMAIN = "localhost" and then try.
>>
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 11:48 PM, dummyman dummy
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 dummyman wrote:
>
>> hi
>>
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 wrote:
>
>> Can you share
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 error message which is displ
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 superuser but still ge
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
>
>
> On Wed, Mar 14, 2012
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 login will not be allowed)
>
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
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 project
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 get the same issue.
>
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 del
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 doesn't display any e
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 wrote:
> I faced this a long ti
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 me
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 / p
p://www.meppum.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/admi
38 matches
Mail list logo