def random(request, size=5, chars=string.ascii_lowercase + string.digits):
return HttpResponse(''.join(random.choice(chars) for _ in range(size)))
urlpatterns = patterns('',
url(r'^game/(?P<id>.+)$', 'myapp.views.game_view', name='game_view'),
def game_view(request, id):
# тут что-то делаем