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

Update browsable-api.md#9509

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
auvipy merged 3 commits intoencode:masterfromrafaelgramoschi:patch-1
Aug 27, 2024
Merged

Conversation

rafaelgramoschi
Copy link
Contributor

@rafaelgramoschirafaelgramoschi commentedAug 21, 2024
edited
Loading

The documentation uses a deprecated method url(), use re_path() instead. Explicit imports (which were not specified).

Note: Before submitting a code change, please review ourcontributing guidelines.

Description

Documentation edited: deprecated method correction.

Deprecated url(), use re_path(). Show imports.
urlpatterns = [
# ...
url(r"^api-auth/", include("rest_framework.urls", namespace="rest_framework"))
re_path(r"^api-auth/", include("rest_framework.urls", namespace="rest_framework"))
Copy link
Contributor

@ulgensulgensAug 22, 2024
edited
Loading

Choose a reason for hiding this comment

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

This doesn't need to be a regex,path("api-auth/")... is just fine.

browniebroke reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Little note about why i suggested re_path and not path (searching stackoverflow):
re_path() is similar tourl() (both have regex support).
path() doesn't. (See Django docs)
But you are right, most of the docs usepath()

Copy link
Contributor

@ulgensulgens left a comment

Choose a reason for hiding this comment

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

Added a small note about unnecessary regex.

tomchristie reacted with thumbs up emoji
@auvipyauvipy merged commitf593f57 intoencode:masterAug 27, 2024
7 checks passed
@browniebrokebrowniebroke added this to the3.16 milestoneJan 16, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ulgensulgensulgens requested changes

@auvipyauvipyauvipy approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
3.16
Development

Successfully merging this pull request may close these issues.

4 participants
@rafaelgramoschi@ulgens@auvipy@browniebroke

[8]ページ先頭

©2009-2025 Movatter.jp