text: from django.conf.urls import url
  from django.conf import settings
  from django.conf.urls.static import static
  
  from . import views
  
  urlpatterns = [
      url(r'^accounts/(?P<user_id>\d+)/profile/$', views.profile, name='profile'),
      url(r'^accounts/(?P<user_id>\d+)/settings/$', views.change_profile, name='change_profile'),
      url(r'^accounts/(?P<user_id>\d+)/profile/favourites$', views.favourites, name='favourites'),
      url(r'^accounts/(?P<user_id>\d+)/profile/comments$', views.comments, name='comments'),
      url(r'^logout/$', views.logout_request, name='logout'),
      url(r'^login/$', views.login_request, name='login'),
      url(r'^register/$', views.register, name="register"),  # <-- added
      url(r'^signup/$', views.signup, name='signup'),
      url(r'^aval/$', views.aval_change, name='aval_change'),
      url(r'^$', views.product_list, name='product_list'),
      url(r'^(?P<category_slug>[-\w]+)/$', views.product_list, name='product_list_by_category'),
      url(r'^(?P<product_id>\d+)/(?P<slug>[-\w]+)/$', views.product_detail, name='product_detail'),
      
  ]+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  