Skip to content

Commit 3931a78

Browse files
authored
Merge pull request #2131 from carolinacmoravia/patch-24
M26803: Possible typo mistake
2 parents 4c287ac + f5f1ce6 commit 3931a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/python/learn-django-in-visual-studio-step-06-polls-django-web-project-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ urlpatterns = [
249249
]
250250
```
251251

252-
If you're not familiar with the more complex regular expressions used here, you can paste the expression into [regex101.com](https://regex101.com/) for an explanation in plain language. (You'll need to escape the forward slashes `/` by adding a back slash, `\`h before them; escaping isn't necessary in Python because of the `r` prefix on the string, meaning "raw").
252+
If you're not familiar with the more complex regular expressions used here, you can paste the expression into [regex101.com](https://regex101.com/) for an explanation in plain language. (You'll need to escape the forward slashes `/` by adding a back slash, `\` before them; escaping isn't necessary in Python because of the `r` prefix on the string, meaning "raw").
253253
254254
In Django, the syntax `?P<name>pattern` creates a group named `name`, which gets passed as arguments to views in the order they appear. In the code shown earlier, `PollsDetailView` and `PollsResultsView` receive an argument named `pk` and `app.views.vote` receives an argument named `poll_id`.
255255

0 commit comments

Comments
 (0)