Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit fcddd9b

Browse files
fix Django initial lectures
1 parent 0aee255 commit fcddd9b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lesson28.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -810,16 +810,16 @@ def regex(request, text):
810810
2. Создать в нём всю необходимую структуру, для урлов:
811811

812812
* `http://127.0.0.1:8000/`,
813-
* `http://127.0.0.1:8000/acricles`,
814-
* `http://127.0.0.1:8000/acrticles/archive`,
815-
* `http://127.0.0.1:8000/users`
813+
* `http://127.0.0.1:8000/articles/`,
814+
* `http://127.0.0.1:8000/articles/archive/`,
815+
* `http://127.0.0.1:8000/users/`
816816

817817
3. Создать структуру для динамических урлов:
818818

819-
* `http://127.0.0.1:8000/article/<int:article_number>`,
820-
* `http://127.0.0.1:8000/article/<int:article_number>/archive`,
821-
* `http://127.0.0.1:8000/article/<int:article_number>/<slug:slug_text>`,
822-
* `http://127.0.0.1:8000/users/<int:user_number>`
819+
* `http://127.0.0.1:8000/article/<int:article_number>/`,
820+
* `http://127.0.0.1:8000/article/<int:article_number>/archive/`,
821+
* `http://127.0.0.1:8000/article/<int:article_number>/<slug:slug_text>/`,
822+
* `http://127.0.0.1:8000/users/<int:user_number>/`
823823

824824
4. Создать урл который будет принимать параметр вида 4 символа от 1 до 9, или от a до f, знак дефиса и еще 6 символов,
825825
например `/34f1-1ac498/`

0 commit comments

Comments
 (0)