Skip to content

Removes default_app_config for Django Deprecation Warning #1035

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 10, 2021
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox tox-gh-actions
python -m pip install --upgrade tox tox-gh-actions django

- name: Tox tests
run: |
Expand Down
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Michael Howitz
Paul Dekkers
Paul Oswald
Pavel Tvrdík
Peter Carnesciali
Rodney Richardson
Rustem Saiargaliev
Sandro Rodrigues
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Django>=3.0,<3.1
oauthlib>=3.1.0
m2r>=0.2.1
mistune<2
.
6 changes: 5 additions & 1 deletion oauth2_provider/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import django


__version__ = "1.5.0"

default_app_config = "oauth2_provider.apps.DOTConfig"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@pcarn pcarn Nov 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if django.VERSION < (3, 2):
default_app_config = "oauth2_provider.apps.DOTConfig"
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ deps =
sphinx<3
oauthlib>=3.1.0
m2r>=0.2.1
mistune<2
sphinx-rtd-theme
livedocs: sphinx-autobuild
jwcrypto
Expand Down