TT#121955 update Django to 3.2

* set DEFAULT_AUTO_FIELD
  https://docs.djangoproject.com/en/3.2/releases/3.2/#customizing-type-of-auto-created-primary-keys

* use app_name on INSTALLED_APPS
  https://docs.djangoproject.com/en/3.2/releases/3.2/#automatic-appconfig-discovery

Change-Id: If43954d54e4094feab88370f375b46d5905a0be3
pull/5/head
Victor Seva 4 years ago
parent ec5c90554c
commit c8abcd38e6

@ -37,12 +37,12 @@ INSTALLED_APPS = [
"django_filters", "django_filters",
"jsonify", "jsonify",
"import_export", "import_export",
"repoapi.apps.RepoAPIConfig", "hotfix",
"hotfix.apps.HotfixConfig", "panel",
"panel.apps.PanelConfig", "release_dashboard",
"release_dashboard.apps.ReleaseDashboardConfig", "build",
"build.apps.ReleaseConfig", "release_changed",
"release_changed.apps.ReleaseChangedConfig", "repoapi",
] ]
MIDDLEWARE = ( MIDDLEWARE = (
@ -91,6 +91,7 @@ USE_L10N = True
USE_TZ = True USE_TZ = True
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
# Static files (CSS, JavaScript, Images) # Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.8/howto/static-files/ # https://docs.djangoproject.com/en/1.8/howto/static-files/

@ -1,5 +1,5 @@
celery celery
Django==3.1.14 Django==3.2.11
django-appconf django-appconf
django-assets django-assets
django-celery-beat django-celery-beat

@ -5,7 +5,7 @@ FROM docker.mgm.sipwise.com/sipwise-bullseye:latest
# is updated with the current date. It will force refresh of all # is updated with the current date. It will force refresh of all
# of the base images and things like `apt-get update` won't be using # of the base images and things like `apt-get update` won't be using
# old cached versions when the Dockerfile is built. # old cached versions when the Dockerfile is built.
ENV REFRESHED_AT 2022-01-20 ENV REFRESHED_AT 2022-01-21
RUN apt-get update && apt-get install --assume-yes python3 python3-dev \ RUN apt-get update && apt-get install --assume-yes python3 python3-dev \
python3-pytest python3-pytest-pep8 \ python3-pytest python3-pytest-pep8 \

Loading…
Cancel
Save