from django.conf.urls import include, url
from django.contrib import admin

from . import views

urlpatterns = [
    url(r'^$', views.ViewView.as_view(), name='profile_own_view'),
    url(r'^edit/', views.EditView.as_view(), name='profile_edit'),
    url(r'^view/', views.ViewView.as_view(), name='profile_own_view'),
    url(r'^view/(?P<user_name>\d+)/$', views.ViewView.as_view(), name='profile_view'),

]

@@ -339,16 +339,26 @@
 user
-_
 name%3E
-%5Cd
+%5Ba-zA-Z0-9_-%5D
 +)/$

Fix user name url pattern