#31092: Django 3 runserver command stops after login into admin page
-------------------------------------+-------------------------------------
Reporter: Alejandro | Owner: nobody
Otero Ortiz de Cosca |
Type: Bug | Status: new
Component: Utilities | Version: 3.0
Severity: Normal | Keywords: dev, server,
Triage Stage: | runserver, admin, login
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
== 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.
--
Ticket URL: <https://code.djangoproject.com/ticket/31092>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.1bca6aab223da72a1da86eedbb54d30a%40djangoproject.com.