Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
Closed
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
97bafc2
[Material] Add sphinx-material 3rd party package
shorodilov Dec 21, 2023
5450a5c
[Material] Change documentation theme
shorodilov Dec 21, 2023
08b0787
Change toctrees max depth to 2 entries
shorodilov Dec 22, 2023
77ec7b1
Change toctrees max depth to 2 entries
shorodilov Dec 22, 2023
4d48af5
Add legacy document to exclude patterns
shorodilov Dec 22, 2023
9e6121e
Merge branch 'devel' into feature/material4sphinx
shorodilov Dec 22, 2023
2d15485
Remove HTML minify flag to preserve mermaid diagrams rendering
shorodilov Dec 22, 2023
469a009
[Material] Apply material theme for the documentation (#147)
shorodilov Dec 22, 2023
b8958c1
Move submodules with specifications to "spec" directory
shorodilov Dec 22, 2023
fa7bf0e
Fix indentation in appx toctree (tabs vs spaces)
shorodilov Dec 22, 2023
1b23933
Update specifications submodules
shorodilov Dec 22, 2023
c12cbc3
Move specifications translations according
shorodilov Dec 22, 2023
c9350cb
Update giver site specification submodule
shorodilov Dec 22, 2023
a3e2ee5
Add redirects support for the documentation builder
shorodilov Dec 22, 2023
6874c7f
Setup redirects for renamed submodules
shorodilov Dec 22, 2023
bada0bd
[Specification] Update specification submodules (#150)
shorodilov Dec 22, 2023
6f362fc
Start working on Django materials
shorodilov Oct 25, 2023
5e1a268
Add URL dispatcher document (draft)
shorodilov Oct 26, 2023
e90037d
Rename URLConf document and add missed CBV document
shorodilov Dec 22, 2023
8a61cc2
Add URLConf and requests examples
shorodilov Dec 22, 2023
4f9f0de
Fix documents naming (URL dispatcher)
shorodilov Dec 22, 2023
c3cc0ad
Add Django docs to bibliography db
shorodilov Dec 22, 2023
074fc04
Add path converters section
shorodilov Dec 22, 2023
89980fb
Add regular expression section
shorodilov Dec 22, 2023
0df666e
Add error handling section
shorodilov Dec 22, 2023
baa005b
Add URLs include section
shorodilov Dec 22, 2023
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add path converters section
  • Loading branch information
shorodilov committed Dec 22, 2023
commit 074fc0420838dfe261b6857061225a1e3379258f
15 changes: 14 additions & 1 deletion src/django/urls.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.. _class-based view: ./cbv.txt
.. _register custom path converters:
https://docs.djangoproject.com/en/5.0/topics/http/urls/#registering-custom-path-converters

*******************************************************************************
URL Dispatcher
Expand Down Expand Up @@ -73,7 +75,18 @@ the system follows to determine which Python code to execute:
Path converters
===============

.. todo: path converters
- ``str`` - matches any non-empty string, excluding the path separator,
**'/'**.
- ``int`` - matches zero or any positive integer.Returns an **int**.
- ``slug`` - matches any slug string consisting of ASCII letters or numbers,
plus the hyphen and underscore (e.g. **building-django-site**).
- ``uuid`` - matches a formatted UUID, dashes must be included and letters
must be lowercase (e.g. 7feb1849-db5e-4f19-90c6-9d6724e11f3d).
Returns a **UUID** instance.
- ``path`` - matches any non-empty string, including the path separator,
**'/'**.

In case of need, you can `register custom path converters`_.

Using regular expressions
=========================
Expand Down