from django.conf.urls import url

from users.views import confirm_swap
from users.views import profile
from users.views import propose_swap
from users.views import reject_swap
from users.views import update_profile

urlpatterns = [
    url('^profile/$', profile, name='profile'),
    url('^swap/$', propose_swap, name='propose_swap'),
    url('^swap/confirm/(?P<uuid>[^/]+)/$', confirm_swap, name='confirm_swap'),
    url('^swap/reject/(?P<uuid>[^/]+)/$', reject_swap, name='confirm_swap'),
    url('^profile/update/$', update_profile, name='update_profile'),
]

from django.conf.urls import url

from users.views import confirm_swap
from users.views import profile
from users.views import propose_swap
from users.views import reject_swap
from users.views import update_profile

urlpatterns = [
    url('^profile/$', profile, name='profile'),
    url('^swap/$', propose_swap, name='propose_swap'),
    url('^swap/confirm/(?P<uuid>[^/]+)/$', confirm_swap, name='confirm_swap'),
    url('^swap/reject/(?P<uuid>[^/]+)/$', reject_swap, name='reject_swap'),
    url('^profile/update/$', update_profile, name='update_profile'),
]

Fix url name