Hi, I'm trying to avoid hardcoding a URL in a redirect call, but I can't for the life of me make redirect work. The relevant code segments first:
>From urls.py: url(r'^game/(\d+)/$', 'views.game', name='gameview'), >From the view: return redirect("gameview", id = newgame.id) The error I get is: NoReverseMatch at /prelobby/ Reverse for 'gameview' with arguments '()' and keyword arguments '{'id': 24}' not found. I've temporarily "fixed" this by using return redirect("/game/"+str(newgame.id)) instead, but this is clearly Evil and Wrong. What am I doing wrong? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.