| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3942e8b commit fe314eb
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,12 +1,14 @@ | |||
| 1 | 1 | from django.conf.urls.defaults import * | |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | + USERNAME = r'(?P<username>[-.\w]+)' | ||
| 5 | + | ||
| 4 | 6 | urlpatterns = patterns('basic.profiles.views', | |
| 5 | 7 | url(r'^edit/$', | |
| 6 | 8 | view='profile_edit', | |
| 7 | 9 | name='profile_edit', | |
| 8 | 10 | ), | |
| 9 | - url(r'^(?P<username>[-\w]+)/$', | ||
| 11 | + url(r'^%s/$' % USERNAME, | ||
| 10 | 12 | view='profile_detail', | |
| 11 | 13 | name='profile_detail', | |
| 12 | 14 | ), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,29 +1,31 @@ | |||
| 1 | 1 | from django.conf.urls.defaults import * | |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | + USERNAME = r'(?P<username>[-.\w]+)' | ||
| 5 | + | ||
| 4 | 6 | urlpatterns = patterns('basic.relationships.views', | |
| 5 | - url(r'^following/(?P<username>\w+)/$', | ||
| 7 | + url(r'^following/%s/$' % USERNAME, | ||
| 6 | 8 | view='following', | |
| 7 | 9 | name='relationship_following' | |
| 8 | 10 | ), | |
| 9 | - url(r'^followers/(?P<username>\w+)/$', | ||
| 11 | + url(r'^followers/%s/$' % USERNAME, | ||
| 10 | 12 | view='followers', | |
| 11 | 13 | name='relationship_followers' | |
| 12 | 14 | ), | |
| 13 | - url(r'^follow/(?P<username>\w+)/$', | ||
| 15 | + url(r'^follow/%s/$' % USERNAME, | ||
| 14 | 16 | view='follow', | |
| 15 | 17 | name='relationship_follow' | |
| 16 | 18 | ), | |
| 17 | - url(r'^unfollow/(?P<username>\w+)/$', | ||
| 19 | + url(r'^unfollow/%s/$' % USERNAME, | ||
| 18 | 20 | view='unfollow', | |
| 19 | 21 | name='relationship_unfollow' | |
| 20 | 22 | ), | |
| 21 | - url(r'^block/(?P<username>\w+)/$', | ||
| 23 | + url(r'^block/%s/$' % USERNAME, | ||
| 22 | 24 | view='block', | |
| 23 | 25 | name='relationship_block' | |
| 24 | 26 | ), | |
| 25 | - url(r'^unblock/(?P<username>\w+)/$', | ||
| 27 | + url(r'^unblock/%s/$' % USERNAME, | ||
| 26 | 28 | view='unblock', | |
| 27 | 29 | name='relationship_unblock' | |
| 28 | 30 | ), | |
| 29 | - ) | ||
| 31 | + ) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments