Created
July 15, 2011 21:17
-
-
Save pydanny/1085566 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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