Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added support for Django 4.0#1010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
n2ygk merged 2 commits intodjango-json-api:masterfromsliverc:django_4_0
Nov 22, 2021
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletionsCHANGELOG.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,10 @@ any parts of the framework not mentioned in the documentation should generally b

## [Unreleased]

### Added

* Added support for Django 4.0.

### Fixed

* Adjusted error messages to correctly use capital "JSON:API" abbreviation as used in the specification.
Expand Down
2 changes: 1 addition & 1 deletionREADME.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -89,7 +89,7 @@ Requirements
------------

1. Python (3.6, 3.7, 3.8, 3.9)
2. Django (2.2, 3.0, 3.1, 3.2)
2. Django (2.2, 3.0, 3.1, 3.2, 4.0)
3. Django REST framework (3.12)

We **highly** recommend and only officially support the latest patch release of each Python, Django and REST framework series.
Expand Down
2 changes: 1 addition & 1 deletiondocs/getting-started.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -52,7 +52,7 @@ like the following:
## Requirements

1. Python (3.6, 3.7, 3.8, 3.9)
2. Django (2.2, 3.0, 3.1, 3.2)
2. Django (2.2, 3.0, 3.1, 3.2, 4.0)
3. Django REST framework (3.12)

We **highly** recommend and only officially support the latest patch release of each Python, Django and REST framework series.
Expand Down
1 change: 1 addition & 0 deletionsexample/settings/dev.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@

MEDIA_ROOT = os.path.normcase(os.path.dirname(os.path.abspath(__file__)))
MEDIA_URL = "/media/"
USE_TZ = False

DATABASE_ENGINE = "sqlite3"

Expand Down
2 changes: 1 addition & 1 deletionexample/urls_test.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
from django.conf.urls import re_path
from django.urls import re_path
from rest_framework import routers

from .api.resources.identity import GenericIdentity, Identity
Expand Down
2 changes: 1 addition & 1 deletionrequirements/requirements-optionals.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
django-filter==21.1
django-polymorphic==3.0.0
django-polymorphic==3.1.0
pyyaml==6.0
uritemplate==4.1.1
5 changes: 5 additions & 0 deletionsrequirements/requirements-testing.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,3 +6,8 @@ pytest-cov==3.0.0
pytest-django==4.4.0
pytest-factoryboy==2.1.0
syrupy==1.4.7
# TODO remove pytz dep again once DRF higher than 3.12.4 is released
# Django 4.0 removed dependency on pytz and made it optional but
# DRF requires it and will define it as dependency in future versions
# only adding this to testing though as DJA does not directly use pytz
pytz==2021.3
4 changes: 2 additions & 2 deletionssetup.cfg
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -58,8 +58,8 @@ DJANGO_SETTINGS_MODULE=example.settings.test
filterwarnings =
error::DeprecationWarning
error::PendingDeprecationWarning
#Django Debug Toolbar currently (2021-04-07) specifies default_app_config which is deprecated in Django 3.2:
ignore:'debug_toolbar' defines default_app_config = 'debug_toolbar.apps.DebugToolbarConfig'. Django now detects this configuration automatically. You can remove default_app_config.:PendingDeprecationWarning
#TODO remove again once DRF higher than 3.12.4 has been released
ignore:'rest_framework' defines default_app_config
# TODO remove in next major version of DJA 5.0.0
# this deprecation warning filter needs to be added as AuthorSerializer is used in
# too many tests which introduced the type field name in tests
Expand Down
2 changes: 1 addition & 1 deletionsetup.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -97,7 +97,7 @@ def get_package_data(package):
install_requires=[
"inflection>=0.3.0",
"djangorestframework>=3.12,<3.13",
"django>=2.2,<3.3",
"django>=2.2,<4.1",
],
extras_require={
"django-polymorphic": ["django-polymorphic>=2.0"],
Expand Down
2 changes: 1 addition & 1 deletiontests/test_relations.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
import pytest
from django.conf.urls import re_path
from django.urls import re_path
from rest_framework import status
from rest_framework.fields import SkipField
from rest_framework.routers import SimpleRouter
Expand Down
2 changes: 2 additions & 0 deletionstox.ini
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
[tox]
envlist =
py{36,37,38,39}-django{22,30,31,32}-drf{312,master},
py{38,39}-django40-drf{312,master},
lint,docs

[testenv]
Expand All@@ -9,6 +10,7 @@ deps =
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0rc1,<5.0
drf312: djangorestframework>=3.12,<3.13
drfmaster: https://github.com/encode/django-rest-framework/archive/master.zip
-rrequirements/requirements-testing.txt
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp