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] 
> <javascript:>> 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/6a13d9ee-2258-4c0a-b775-8cab39995515%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to