Answer the question
In order to leave comments, you need to log in
How to generate random links?
Hello. Need to generate random links in Django.
I get random like this:
def random(request, size=5, chars=string.ascii_lowercase + string.digits):
return HttpResponse(''.join(random.choice(chars) for _ in range(size)))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question