softwaresaved / lowfat

The Software Sustainability Institute's low effort Fellowship Administration Tool (lowFAT). Contact: @gperu
https://softwaresaved.github.io/lowfat/
Other
13 stars 3 forks source link

Django v4 depreciation issues #626

Closed PipGrylls closed 3 months ago

PipGrylls commented 3 years ago

These are caused by:

They do not require fixing until we go to dj4+ but this issue should monitor and update as and when these issues change.

/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/django/apps/registry.py:91: RemovedInDjango41Warning: 'constance' defines default_app_config = 'constance.apps.ConstanceConfig'. Django now detects this configuration automatically. You can remove default_app_config.
  app_config = AppConfig.create(entry)
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/constance/signals.py:3: RemovedInDjango40Warning: The providing_args argument is deprecated. As it is purely documentational, it has no replacement. If you rely on this argument as documentation, you can move the text to a code comment or docstring.
  config_updated = django.dispatch.Signal(
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/dbbackup/apps.py:12: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  verbose_name = _('Backup and restore')
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/django/apps/registry.py:91: RemovedInDjango41Warning: 'dbbackup' defines default_app_config = 'dbbackup.apps.DbbackupConfig'. Django now detects this configuration automatically. You can remove default_app_config.
  app_config = AppConfig.create(entry)
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/django/apps/registry.py:91: RemovedInDjango41Warning: 'social_django' defines default_app_config = 'social_django.config.PythonSocialAuthConfig'. However, Django's automatic detection did not find this configuration. You should move the default config class to the apps submodule of your application and, if this module defines several config classes, mark the default one with default = True.
  app_config = AppConfig.create(entry)
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/django/apps/registry.py:91: RemovedInDjango41Warning: 'tagulous' defines default_app_config = 'tagulous.apps.TagulousConfig'. Django now detects this configuration automatically. You can remove default_app_config.
  app_config = AppConfig.create(entry)
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/constance/backends/database/models.py:19: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  verbose_name = _('constance')
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/constance/backends/database/models.py:20: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  verbose_name_plural = _('constances')
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/constance/admin.py:305: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  verbose_name_plural = _('config')
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/imagekit/admin.py:10: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  short_description = _('Thumbnail')
Creating test database for alias 'default'...
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/social_django/urls.py:15: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path().
  url(r'^login/(?P<backend>[^/]+){0}$'.format(extra), views.auth,
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/social_django/urls.py:17: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path().
  url(r'^complete/(?P<backend>[^/]+){0}$'.format(extra), views.complete,
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/social_django/urls.py:20: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path().
  url(r'^disconnect/(?P<backend>[^/]+){0}$'.format(extra), views.disconnect,
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/social_django/urls.py:22: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path().
  url(r'^disconnect/(?P<backend>[^/]+)/(?P<association_id>\d+){0}$'
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/constance/admin.py:185: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path().
  url(r'^$',
/Users/pgrylls/PycharmProjects/lowfat/venv/lib/python3.8/site-packages/constance/admin.py:188: RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path().
  url(r'^$',
RemovedInDjango40Warning: The {% ifnotequal %} template tag is deprecated in favor of {% if %}. [defaulttags.py:872]
RemovedInDjango40Warning: The {% ifnotequal %} template tag is deprecated in favor of {% if %}. [defaulttags.py:872]
jag1g13 commented 2 years ago

Django 4.2 LTS is expected April 2023

gperu commented 3 months ago

Django upgraded to 4.2 LTS in April 2024: https://docs.google.com/document/d/1edSUVE6ZkHTH6RoIxkcdjJdniYT76-G__dtxhjOV55A/edit#heading=h.jp15al8yenvo