from django.conf.urls import url

from . import views

urlpatterns = [
        url(r'^(?P<url_username>[a-z0-9]*)$', views.user_feed, {'page_nr':'1'}, name='user_feed'),
        url(r'^(?P<url_username>[a-z0-9]*)/(?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'}, name='user_feed'),
        url(r'^(?P<url_username>\w+)/(?P<page_nr>\d+)$', views.user_feed, name='user_feed_page'),
]

Fix error when usernames have capital characters
Fix error when usernames have capital characters

  from django.conf.urls import url
  
  from . import views
  
  urlpatterns = [
-         url(r'^(?P<url_username>[a-z0-9]*)$', views.user_feed, {'page_nr':'1'}, name='user_feed'),
+         url(r'^(?P<url_username>\w+)$', views.user_feed, {'page_nr':'1'}, name='user_feed'),
-         url(r'^(?P<url_username>[a-z0-9]*)/(?P<page_nr>\d+)$', views.user_feed, name='user_feed_page'),
+         url(r'^(?P<url_username>\w+)/(?P<page_nr>\d+)$', views.user_feed, name='user_feed_page'),
  ]
  
Fix error when usernames have capital characters
## Code Before:
from django.conf.urls import url

from . import views

urlpatterns = [
        url(r'^(?P<url_username>[a-z0-9]*)$', views.user_feed, {'page_nr':'1'}, name='user_feed'),
        url(r'^(?P<url_username>[a-z0-9]*)/(?P<page_nr>\d+)$', views.user_feed, name='user_feed_page'),
]

## Instruction:
Fix error when usernames have capital characters
## Code After:
from django.conf.urls import url

from . import views

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