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'),

]

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<username>[a-zA-Z0-9_-]+)/$', views.ViewView.as_view(), name='profile_view'),

]

Fix user name url pattern
Fix user name url pattern
