http://127.0.0.1:8000/ isn't working on Chrome but working fine on Internet Explorer - django

I've recently installed django on Windows Server 2012 R2.
When I run python manage.py runserver it tell mes to use http://127.0.0.1:8000/ . Its working on Internet explorer but in Firefox and Chrome I get the following error.
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: http://127.0.0.1:8000/
Connection to 127.0.0.1 failed.
The system returned: (111) Connection refused
The remote host or network may be down. Please try the request again.
Your cache administrator is administrator.

Bypass proxy wasn't enabled. It worked after enabling.

Related

Not able to connect to django rest server at http://127.0.0.1:8000/

I have used the same code as the tutorial on the
drf website
When i run
python manage.py runserver
it gives me this in the terminal
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
July 10, 2021 - 07:12:08
Django version 3.2.5, using settings 'drftut.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Firefox gives me this error:
The connection has timed out
The server at 127.0.0.1 is taking too long to respond.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
I'm also using wsl1 and vscode remote desktop for wsl and im running this inside a python enviroment
kill $(lsof -t -i:8000)
Use this command in terminal or cmd to kill the process which is already running on PORT 8000.
If this is also not worked for you, then try to runserver on another PORT like so python manage.py runserver 5000 or any other free port

Django remote server is running but I cannot connect to admin interface in local web browser

So I have set up my Django server through an SSH connection to my remote server. It shows me that the server is actually running:
August 10, 2020 - 04:09:47
Django version 3.1, using settings 'risk_areas.settings'
Starting development server at http://xx.xxx.xxx.xxx:8000/
Quit the server with CONTROL-C
However, if I try to go to the URL above (with my IP address in it) it gives me a connection time out error. What might be the reason for this?

Browser error during django + SSL connection with local server

I have a problem during adding facebook login button to my website at localhost.
I've already add mysite.com to hosts file and installed django-extensions, werkzeug, pyOpenSSL. By running command python manage.py runserver_plus --cert-file cert.crt my own-made sertificate was created. I imported this certificate to Trusted Chrome sertificates but safe connection doesn't establish. When i pass https://example.com:8000/account/login/ I hit an error NET::ERR_CERT_COMMON_NAME_INVALID,
Failed to confirm that this is the server example.com. Its safety certificate refers to *. The server may be configured incorrectly or someone is trying to intercept your data.
Please help me to solve this.

This site can't provide a secure connection ERR_SLL_PROTOCOL ERROR

I have a google appengine project running in localhost. Everything works fine until i go to the 'login' page. When i go there i get the following error:
This site can’t provide a secure connection 127.0.0.1 sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
the appengine command i use to run the project is dev_appserver.py" --host 127.0.0.1 . This is run pycharm. This only occurs in the 'login' endpoint and no other endpoint.
The console error i get is:
default: "GET /signin HTTP/1.1" 301 -
to connect over HTTPS you need a valid SSL certificate on your server here is you local server as I understand from the message. you can get a certificate for your local server but I don't think it's worth the trouble while working locally. On the other hand when you deploy to Google App Engine, you get SSL certificate automatically and it's managed by Google, that's why your code works without any problem in the deployment.

development server(Eclipse-Django) not loading through browser on windows

1)I am unable to access the website hosted by django's development server on my local machine(http://127.0.0.1:8000/).
2)I am unable to get the website in the browser.
Using Windows 7
When you start the server, it should say something like:
Validating models...
0 errors found
Django version 1.3, using settings 'myapp.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Do you get this message, and is the port number the same as the one you're using?
If it is, you could possibly have a problem with proxy settings. Does your browser have a proxy server configured?