from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^(?P<url_username>\w+)$',
        views.user_feed, {'page_nr': '1', 'sort': 'new'}, name='user_feed'),
    url(r'^(?P<url_username>\w+)/(?P<sort>hot|new|top)$',
        views.user_feed, {'page_nr': '1'}, name='user_sort_feed'),
    url(r'^(?P<url_username>\w+)/(?P<sort>hot|new|top)/(?P<page_nr>\d+)$',
        views.user_feed, name='user_feed_page'),
    ]

from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^(?P<url_username>[\w.@+-]+)$',
        views.user_feed, {'page_nr': '1', 'sort': 'new'}, name='user_feed'),
    url(r'^(?P<url_username>[\w.@+-]+)/(?P<sort>hot|new|top)$',
        views.user_feed, {'page_nr': '1'}, name='user_sort_feed'),
    url(r'^(?P<url_username>[\w.@+-]+)/(?P<sort>hot|new|top)/(?P<page_nr>\d+)$',
        views.user_feed, name='user_feed_page'),
    ]

Fix url lookup error for usernames certain special characters
Fix url lookup error for usernames certain special characters
