Like I said, in older versions of Django, that variable used to be named
MIDDLEWARE_CLASSES, if I create a Django project with Python 3.7 and Django
2.2.3, its MIDDLEWARE but Python 3.8 and Django 2.2.3 its named
MIDDLEWARE_CLASSES which on running python manage.py runserver fails. Here
is the traceback:
Exception in thread django-main-thread:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/threading.py", line 923, in
_bootstrap_inner
self.run()
File "/usr/local/lib/python3.8/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File
"/home/pystar/.local/share/virtualenvs/del-wUbba1cG/lib/python3.8/site-packages/django/utils/autoreload.py",
line 54, in wrapper
fn(*args, **kwargs)
File
"/home/pystar/.local/share/virtualenvs/del-wUbba1cG/lib/python3.8/site-packages/django/core/management/commands/runserver.py",
line 117, in inner_run
self.check(display_num_errors=True)
File
"/home/pystar/.local/share/virtualenvs/del-wUbba1cG/lib/python3.8/site-packages/django/core/management/base.py",
line 436, in check
raise SystemCheckError(msg)
django.core.management.base.SystemCheckError: SystemCheckError: System
check identified some issues:
ERRORS:
?: (admin.E408) 'django.contrib.auth.middleware.AuthenticationMiddleware'
must be in MIDDLEWARE in order to use the admin application.
?: (admin.E409) 'django.contrib.messages.middleware.MessageMiddleware' must
be in MIDDLEWARE in order to use the admin application.
?: (admin.E410) 'django.contrib.sessions.middleware.SessionMiddleware' must
be in MIDDLEWARE in order to use the admin application.
On Mon, Jul 15, 2019 at 12:27 PM Curtis Maloney <[email protected]> wrote:
> On Mon, 15 Jul 2019, at 21:23, Curtis Maloney wrote:
>
> First for everyone reading, it's important to note that Python 3.8 hasn't
> been released yet.
>
>
> To elaborate on this point - it's _close_ to release, so it's valuable to
> see how Django behaves with it.
>
> --
> C
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/fc05ecd2-41a0-4326-9fe9-f3a80128c49f%40www.fastmail.com
> <https://groups.google.com/d/msgid/django-developers/fc05ecd2-41a0-4326-9fe9-f3a80128c49f%40www.fastmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/CA%2BB1BD4oKnqqFG4oLWmWO8At3L67EM%2B5TLA_RDrPNmK086V4UA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.