Skip to content

Replace all url() calls with path() or re_path() #7512

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 4 commits into from
Sep 8, 2020

Conversation

adamchainz
Copy link
Contributor

Fixes #7406 .

A rebase of #7420 , with some fixes from myself.

@adamchainz
Copy link
Contributor Author

Subsumes #7496.

@adamchainz adamchainz force-pushed the issue_7406_deprecated_url branch from 7e76267 to 672e56d Compare September 8, 2020 13:59
@adamchainz
Copy link
Contributor Author

Rebased just now, fixing conflict with the tidy up in #7523.

@tomchristie
Copy link
Member

Wow. This is fantastic!
Add yes, all looks good to me.

@tomchristie tomchristie merged commit 410575d into encode:master Sep 8, 2020
@adamchainz adamchainz deleted the issue_7406_deprecated_url branch September 8, 2020 14:51
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
* url() is deprecated in Django 3.1

* update given feedbacks on url() is deprecated in Django 3.1

* Fix test_urlpatterns.py to continue testing mixed re_path() and path()

* Fix one missed reference

Co-authored-by: sanjusci <sanju.sci9@gmail.com>
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.

url() is deprecated in Django 3.1
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy