Skip to content

Instantly share code, notes, and snippets.

@avances123
Created June 15, 2012 20:27
Show Gist options
  • Save avances123/2938541 to your computer and use it in GitHub Desktop.
Save avances123/2938541 to your computer and use it in GitHub Desktop.
url(r'^users/(?P<slug>[\w-]+)/$', DetailView.as_view(
model=User,
template_name='users/user_detail.html',
slug_field = 'username')),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment