import random def myview(request): url_end = random.choice([1,2,3,4]) url = '/someplace/' + str(url_end) return HttpResponseRedirect(url)
確定! 回上一頁