Remove default_app_config settings

These are only required in Django < 3.2, which we no longer support.
pull/8229/head
Matt Westcott 2022-04-07 09:02:28 +01:00 zatwierdzone przez Matt Westcott
rodzic 096ab2a8b4
commit cef90cfd88
22 zmienionych plików z 0 dodań i 170 usunięć

Wyświetl plik

@ -14,20 +14,6 @@ __version__ = get_version(VERSION)
__semver__ = get_semver_version(VERSION)
try:
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.apps.WagtailAppConfig"
except ImportError:
# Django is not installed. This is most likely because pip is importing this file to get the version
pass
def setup():
import warnings

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.admin.apps.WagtailAdminAppConfig"

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.api.v2.apps.WagtailAPIV2AppConfig"

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.contrib.forms.apps.WagtailFormsAppConfig"

Wyświetl plik

@ -1,9 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = (
"wagtail.contrib.frontend_cache.apps.WagtailFrontendCacheAppConfig"
)

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.contrib.modeladmin.apps.WagtailModelAdminAppConfig"

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.contrib.redirects.apps.WagtailRedirectsAppConfig"

Wyświetl plik

@ -1,9 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = (
"wagtail.contrib.routable_page.apps.WagtailRoutablePageAppConfig"
)

Wyświetl plik

@ -1,9 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = (
"wagtail.contrib.search_promotions.apps.WagtailSearchPromotionsAppConfig"
)

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.contrib.settings.apps.WagtailSettingsAppConfig"

Wyświetl plik

@ -1,9 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = (
"wagtail.contrib.simple_translation.apps.SimpleTranslationAppConfig"
)

Wyświetl plik

@ -1,9 +1 @@
import django
from .sitemap_generator import Sitemap # noqa
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.contrib.sitemaps.apps.WagtailSitemapsAppConfig"

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.contrib.styleguide.apps.WagtailStyleGuideAppConfig"

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.contrib.table_block.apps.WagtailTableBlockAppConfig"

Wyświetl plik

@ -1,13 +1,6 @@
import django
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.documents.apps.WagtailDocsAppConfig"
def get_document_model_string():
"""

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.embeds.apps.WagtailEmbedsAppConfig"

Wyświetl plik

@ -1,13 +1,6 @@
import django
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.images.apps.WagtailImagesAppConfig"
def get_image_model_string():
"""

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.locales.apps.WagtailLocalesAppConfig"

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.search.apps.WagtailSearchAppConfig"

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.sites.apps.WagtailSitesAppConfig"

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.snippets.apps.WagtailSnippetsAppConfig"

Wyświetl plik

@ -1,7 +0,0 @@
import django
if django.VERSION >= (3, 2):
# The declaration is only needed for older Django versions
pass
else:
default_app_config = "wagtail.users.apps.WagtailUsersAppConfig"