Skip to content

Instantly share code, notes, and snippets.

@jwasinger
Created December 12, 2014 23:52
Show Gist options
  • Save jwasinger/181467e2e373b588b820 to your computer and use it in GitHub Desktop.
Save jwasinger/181467e2e373b588b820 to your computer and use it in GitHub Desktop.
url(r'^onid_transition/(?P<user_code>\w+)$', 'list_app.views.onid_transition', name='onid_transition')
#example: https://.../onid_transition/842f3611c9b1f91f68bee646836679
#how I'm currently trying to access the 'user_code' portion of the url in my template to create a link to another view that
#also requires the 'user_code' as a parameter:
"{% url 'list_app:no_onid' user_code=onid_transition.user_code%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment