Can't log into localhost:8000/admin ... ERR_CONNECTION_REFUSED
Based on the limited info:

Try to access 127.0.0.1:8000/admin instead of localhost:8000/admin.
In django's settings set ALLOWED_HOSTS = ['*'] (NOTE: This is only for development).
Check if something else is not already runnning on that port. You can use the following command on Mac lsof -Pn -i4 | grep -i "listen".
I'm still pretty new to this web dev. I have been having trouble accessing the django admin site. I'm able to do localhost:8000 just fine.
If I do localhost:8000/admin, I'm directed to the admin login page. I have already created id/pw through createsuperuser. 
Anyway, once I type in my id and pw, I noticed my dev server (localhost or 127.0.0.1) terminates and the login page will throw me an error saying "this site can't be reached" with ERR_CONNECTION_REFUSED.
I've tried turning off my internet/firewall, but it still gave me the same result. 
I would greatly appreciate your help. I've been having so much trouble with this because I can't access the django admin site...
(i'm using macOS Catalina, if that's any useful. Also I'm just following the basic Django tutorials, so i'm not using anything like gunicorn or nginx either.
)
Thanks.