Skip to content

Commit aaedb0e

Browse files
authored
Refactor Python fixtures (#682)
* Update fixtures to support default python version (3.10.x) * Update django fixtures and fix integration tests errors
1 parent 4ee6882 commit aaedb0e

199 files changed

Lines changed: 462 additions & 1268 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.

fixtures/django_python_3/django_web_app/asgi.py renamed to fixtures/django/django_web_app/asgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
It exposes the ASGI callable as a module-level variable named ``application``.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/
7+
https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/
88
"""
99

1010
import os

fixtures/django_python_3/django_web_app/settings.py renamed to fixtures/django/django_web_app/settings.py

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""
22
Django settings for django_web_app project.
33
4-
Generated by 'django-admin startproject' using Django 4.0.
4+
Generated by 'django-admin startproject' using Django 4.1.5.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/4.0/topics/settings/
7+
https://docs.djangoproject.com/en/4.1/topics/settings/
88
99
For the full list of settings and their values, see
10-
https://docs.djangoproject.com/en/4.0/ref/settings/
10+
https://docs.djangoproject.com/en/4.1/ref/settings/
1111
"""
1212

1313
from pathlib import Path
@@ -17,10 +17,10 @@
1717

1818

1919
# Quick-start development settings - unsuitable for production
20-
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
20+
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
2121

2222
# SECURITY WARNING: keep the secret key used in production secret!
23-
SECRET_KEY = 'django-insecure-2#sh(s&7s!oy^y3hti86)slp=67hivo12la+hhly%kag$!e!c!'
23+
SECRET_KEY = 'django-insecure-1&02gvsqhx5gvh44@)x%k03&79r*vkievzv0%yl*+vq5m)unm_'
2424

2525
# SECURITY WARNING: don't run with debug turned on in production!
2626
DEBUG = True
@@ -72,7 +72,7 @@
7272

7373

7474
# Database
75-
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
75+
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
7676

7777
DATABASES = {
7878
'default': {
@@ -83,7 +83,7 @@
8383

8484

8585
# Password validation
86-
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators
86+
# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators
8787

8888
AUTH_PASSWORD_VALIDATORS = [
8989
{
@@ -102,7 +102,7 @@
102102

103103

104104
# Internationalization
105-
# https://docs.djangoproject.com/en/4.0/topics/i18n/
105+
# https://docs.djangoproject.com/en/4.1/topics/i18n/
106106

107107
LANGUAGE_CODE = 'en-us'
108108

@@ -112,5 +112,14 @@
112112

113113
USE_TZ = True
114114

115+
116+
# Static files (CSS, JavaScript, Images)
117+
# https://docs.djangoproject.com/en/4.1/howto/static-files/
118+
115119
STATIC_URL = '/static/'
116120
STATIC_ROOT = 'static_root'
121+
122+
# Default primary key field type
123+
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
124+
125+
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

fixtures/django_python_3/django_web_app/urls.py renamed to fixtures/django/django_web_app/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""django_web_app URL Configuration
22
33
The `urlpatterns` list routes URLs to views. For more information please see:
4-
https://docs.djangoproject.com/en/4.0/topics/http/urls/
4+
https://docs.djangoproject.com/en/4.1/topics/http/urls/
55
Examples:
66
Function views
77
1. Add an import: from my_app import views

fixtures/django_python_3/django_web_app/wsgi.py renamed to fixtures/django/django_web_app/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/
7+
https://docs.djangoproject.com/en/4.1/howto/deployment/wsgi/
88
"""
99

1010
import os

fixtures/django/requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dj-database-url==1.2.0
2+
Django==4.1.5
3+
gunicorn==20.1.0
4+
waitress==2.1.2
5+
whitenoise==6.3.0

fixtures/django_python_3/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

fixtures/django_python_3/runtime.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)