﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31092	Django 3 runserver command stops after login into admin page	Alejandro Otero Ortiz de Cosca	nobody	"== Description

The Django 3 development server halts when login into the admin page. The dev server (`runserver`) serving a blank (straight after running `startproject`) project responds fine to the welcome page and the admin login form page, but it crashes when redirecting after a successful login.

* The dev server starts without errors or warnings.
* All requests are responded correctly (base endpoint and admin login page).
* Login request seems to be processed correctly, client gets the 302 redirection to the admin page after login.
* Server stops working without printing any error.

=== Dev server output

{{{
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
December 15, 2019 - 12:52:00
Django version 3.0, using settings 'admin_login_issue.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[15/Dec/2019 xx:xx:xx] ""GET /admin/ HTTP/1.1"" 302 0
[15/Dec/2019 xx:xx:xx] ""GET /admin/login/?next=/admin/ HTTP/1.1"" 200 1913
[15/Dec/2019 xx:xx:xx] ""GET /static/admin/css/base.css HTTP/1.1"" 304 0
[15/Dec/2019 xx:xx:xx] ""GET /static/admin/css/login.css HTTP/1.1"" 304 0
[15/Dec/2019 xx:xx:xx] ""GET /static/admin/css/responsive.css HTTP/1.1"" 304 0
[15/Dec/2019 xx:xx:xx] ""GET /static/admin/css/fonts.css HTTP/1.1"" 304 0
[15/Dec/2019 xx:xx:xx] ""POST /admin/login/?next=/admin/ HTTP/1.1"" 302 0
}}}

== System description

* Python 3.7.0
* Django 3.0
* Mac OS Mojave 10.14.6


== Reproduction steps

* Create virtualenv
* Install `Django==3.0`
* Create django project

    {{{
django-admin startproject admin_login_issue
    }}}
* Run migrations

    {{{
python manage.py migrate
    }}}
* Create superuser

    {{{
python manage.py createsuperuser
    }}}
* Start development server

    {{{
python manage.py runserver
    }}}
* Access http://127.0.0.1:8000/admin/
* Login with your superuser. You should get an error connecting to the server.
* Check the running server. It should not be running."	Bug	closed	Utilities	3.0	Normal	duplicate	dev, server, runserver, admin, login		Unreviewed	0	0	0	0	0	0
