I actually thought pipenv was the issue, and used virtualenv to create my django project with Python 3.8 and Django 2.2.3. In the settings file, its still named as MIDDLEWARE_CLASSES instead of MIDDLEWARE and trying to run the project makes it fail
On Monday, July 15, 2019 at 12:53:51 PM UTC+1, Ehigie Aito wrote: > > This is the contents of the file generated when I use Python 3.7.3 and > Django 2.2.3 > > from django.utils.version import get_version > > VERSION = (2, 2, 3, 'final', 0) > > __version__ = get_version(VERSION) > > > def setup(set_prefix=True): > """ > Configure the settings (this happens as a side effect of accessing the > first setting), configure logging and populate the app registry. > Set the thread-local urlresolvers script prefix if `set_prefix` is > True. > """ > from django.apps import apps > from django.conf import settings > from django.urls import set_script_prefix > from django.utils.log import configure_logging > > configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) > if set_prefix: > set_script_prefix( > '/' if settings.FORCE_SCRIPT_NAME is None else > settings.FORCE_SCRIPT_NAME > ) > apps.populate(settings.INSTALLED_APPS) > > This is the output of the file generated when I create a project with > Python 3.8.0 b1 and Django 2.2.3 > > from django.utils.version import get_version > > VERSION = (2, 2, 3, 'final', 0) > > __version__ = get_version(VERSION) > > > def setup(set_prefix=True): > """ > Configure the settings (this happens as a side effect of accessing the > first setting), configure logging and populate the app registry. > Set the thread-local urlresolvers script prefix if `set_prefix` is > True. > """ > from django.apps import apps > from django.conf import settings > from django.urls import set_script_prefix > from django.utils.log import configure_logging > > configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) > if set_prefix: > set_script_prefix( > '/' if settings.FORCE_SCRIPT_NAME is None else > settings.FORCE_SCRIPT_NAME > ) > apps.populate(settings.INSTALLED_APPS) > > Notice anything? Django 2.2.3 and Python 3.8.0 b1 fails > > On Monday, July 15, 2019 at 12:44:04 PM UTC+1, James Bennett wrote: >> >> On Mon, Jul 15, 2019 at 4:41 AM Ehigie Aito <[email protected]> wrote: >> >>> Not at all, I create all new Django projects from scratch and with >>> pipenv. This only happens with Python 3.8.0 b1 >>> >> >> Open a Python interpreter and type this: >> >> import django >> print(django.VERSION) >> print(django.__file__) >> >> Make sure VERSION returns (2, 2, 3, 'final', 0). >> >> Then go to the location that printed for django.__FILE__ and examine the >> contents of conf/project_template/project_name/settings.py-tpl there. >> > -- 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/ce354a4a-6870-4f1d-ba5a-93b21566fde9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
