D
D
Dmitry Filyushin2015-11-18 17:53:59
Django
Dmitry Filyushin, 2015-11-18 17:53:59

How to pass parameters via url in django?

Web interface to the program for the accounting of goods. Visual urls of this kind

\price-list\
\item\156221
\saler\748

It turns out that the numbers in the addresses are direct links to the product id in the table, and id to the seller's number. How can these codes be hidden or direct record numbers waived?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pinkevich, 2015-11-18
@Filyushin

import uuid
uuid.uuid4()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question