T
T
Tyrion Lannister2016-08-14 00:44:40
Django
Tyrion Lannister, 2016-08-14 00:44:40

How is a variable designated in a Django regular expression?

None of the answers on the internet worked.
I'm new to Django
Django 1.10
url(r'^article(variable here)$', article_get)
The variable will be passed to the view function as the second variable.
Blog project, so I want to create the ability to view one article.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-08-14
@baYonet_cpp

https://docs.djangoproject.com/en/1.10/intro/tutor...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question