H
H
hardwellZero2015-04-06 18:07:59
Django
hardwellZero, 2015-04-06 18:07:59

Random link generation in Django?

Hello.
How can I generate a random url (5-10 characters long) in Django?
Why do I need this:
I want to generate a page on which a certain number of people will be located. I want to use Tornado to track the quantity. Really?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Guest007, 2015-04-08
@Guest007

Generate the variable part of the URL using random
Pass it to the view as a parameter. Well, like this:
In the view itself, you catch something
like that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question