Skip to content

DRF 3.11 : added django 3.0 & removed vesion below 2.1 from martrix #6942

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

Closed
wants to merge 3 commits into from

Conversation

auvipy
Copy link
Member

@auvipy auvipy commented Sep 20, 2019

No description provided.

@auvipy
Copy link
Member Author

auvipy commented Sep 20, 2019

how to fix the Django six import error?

Copy link
Collaborator

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

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

Hi @auvipy.

I'm happy if you want to add 3.0a1 as an allowed failure.

Please don't drop other versions. We'll do that when they're EOL (or later).

six... We dropped Python 2, and removed six. So is it one of the dependencies? (During the preview period we'd expect compat issues, hence an allowed failure.)

Please revert the other changes, to address in other PRs.

There's no need or reason to change everything to use path. url, or re_path is fine — it's not going anywhere. Note that the import you'd need is from django.urls. (As I say, not in this PR in any case please.)

(It's worth running the tests locally and making sure they pass before push to GitHub.)

Thanks.

@auvipy
Copy link
Member Author

auvipy commented Sep 20, 2019

OK, I will come with separate PR as you suggested.

@carltongibson
Copy link
Collaborator

Thanks @auvipy!

@@ -1,11 +1,10 @@
import unittest
from collections import namedtuple

from django.conf.urls import include, url
from django.urls import include, path, re_path, include, Resolver404
Copy link
Member Author

Choose a reason for hiding this comment

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

include imported twice

@rpkilby
Copy link
Member

rpkilby commented Nov 20, 2019

Closing in favor of #7058

@rpkilby rpkilby closed this Nov 20, 2019
@auvipy
Copy link
Member Author

auvipy commented Nov 21, 2019

i thought the path/re_path update would be useful ater django 1.11 support drop.

@tomchristie
Copy link
Member

Indeed - hoping to take a look at that.

@auvipy
Copy link
Member Author

auvipy commented Nov 21, 2019

I you want I can contribute that part :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants