Skip to content

Instantly share code, notes, and snippets.

@pydanny
Created March 17, 2011 01:31
Show Gist options
  • Select an option

  • Save pydanny/873694 to your computer and use it in GitHub Desktop.

Select an option

Save pydanny/873694 to your computer and use it in GitHub Desktop.
url(
regex = '^g/(?P<slug>[-\w]+)/(?P<feature_id>\d+)/(?P<bogus_slug>[-\w]+)/$',
view = grid_detail_feature,
name = 'grid',
),
/grids/g/cms/45/508-asdasda
def grid_detail_feature(slug, feature_id, bogus_slug):
feature = get_object_or_404(Feature, id = feature_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment