Skip to content

Instantly share code, notes, and snippets.

@pydanny
Created July 15, 2011 21:17
Show Gist options
  • Select an option

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

Select an option

Save pydanny/1085566 to your computer and use it in GitHub Desktop.
from django.conf.urls.defaults import patterns, url
from blarg.profiles import views
urlpatterns = patterns('',
url(regex=r'^$',
view=views.profile_list,
name='profile_list',
),
url(
regex = r"^edit/$",
view = views.profile_edit,
name="profile_edit"
),
url(
regex=r'^(?P<username>[-\w]+)/$',
view=views.profile_detail,
name='profile_detail',
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment