text: from django.conf.urls.static import static
  from django.conf.urls import url
  from django.urls import path, re_path
  from django.conf import settings
  from . import views
  
  
  urlpatterns = [
  
  	url(r'^manager/$', views.manager, name='manager'),
  
  	url(r'^home/$', views.home, name='home'),
  	url(r'^bid/$', views.bid, name='bid'),
  	url(r'^search/$', views.search, name='search'),
  	url(r'^about/$', views.about, name='about'),
  
  	url(r'^login/$', views.login, name='login'),
  	url(r'^buyer_login/$', views.buyer_login, name='buyer_login'),
  	url(r'^seller_login/$', views.seller_login, name='seller_login'),
  
  	url(r'^registration/$', views.registration, name='registration'),
  	url(r'^buyer_reg/$', views.buyer_reg, name='buyer_reg'),
  	url(r'^seller_reg/$', views.seller_reg, name='seller_reg'),
  
  	url(r'^buyer_dashboard/$', views.buyer_dashboard, name='buyer_dashboard'),
  	url(r'^seller_dashboard/$', views.seller_dashboard, name='seller_dashboard'),
  
  	url(r'^logout/$', views.logout, name='logout'),
  
  	url(r'^upload/$', views.upload, name='upload'),
  
  	url(r'^index/$', views.index, name='index'),
  
  	path('profile/<str:user_type>/<int:user_id>/<edit>/<change_password>/', views.profile, name='profile'),
  	path('profile/<str:user_type>/<int:user_id>/<edit>/', views.profile, name='profile'),
  	path('profile/<str:user_type>/<int:user_id>/', views.profile, name='profile'),
  	# url(r'^profile/$', views.profile, name='profile'),
  
  	url(r'^edit_profile/$', views.edit_profile, name='edit_profile'),
  
  	url(r'^change_password/$', views.change_password, name='change_password'),
  	
  	path('reset_password/<check_otp>', views.reset_password, name='reset_password'),
  	url(r'^reset_password/$', views.reset_password, name='reset_password'),
  
  	path('asset/<int:id>/<edit>/', views.asset, name='asset'),
  	path('asset/<int:id>/', views.asset, name='asset'),
  
  	url(r'^edit_asset/$', views.edit_asset, name='edit_asset')
  ]
  
  if settings.DEBUG:
  	urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
  
  '''
  	NOTES : 
  	
  		# Using URL
  		# 	url(r'^profile/$', views.profile, name='profile'),
  
  		# Using PATH
  
  		# 	path('profile/<int:user_id>[0-9]+/', views.profile, name='profile'),
  		# 	path('profile/<int:user_id>[0-9]+/edit/', views.profile, name='profile'),
  
  		# 	path('profile/buyer/<int:user_id>[0-9]+/', views.profile, name='buyer-profile'),
  		# 	path('profile/seller/<int:user_id>[0-9]+/', views.profile, name='seller-profile'),
  
  		# 	path('profile/buyer/<int:user_id>[0-9]+/edit/', views.profile, name='edit-buyer-profile'),
  		# 	path('profile/seller/<int:user_id>[0-9]+/edit/', views.profile, name='edit-seller-profile'),
  
  		# 	# Generic User Type
  		# 	path('profile/<str:user_type>/<int:user_id>/edit/', views.profile, name='profile'),
  		# 	path('profile/<str:user_type>/<int:user_id>/', views.profile, name='profile'),
  
  '''
  
  
  # Notes Regarding REGEX in URLPATTERNS
  
  	# If url is used,
  		# url(r'^profile/?P<user_id>$', views.profile, name='profile'),
  
  			# 1. USE url(r'^...$')
  			# 2. for Parameters
  				# url('^xyz/?P<variable>/$')
  			
  	# If path is used
  		# path('profile/<int:user_id>\d+)/', views.profile, name='profile'),
  
  			# 1. DO NOT USE path(r'^...$')
  			# 2. for Parameters
  				# path('xyz/<data_type:variable>/')
  
  
  
  '''
  	
  	# url(r'^profile/(?P<user_type>\w+)/(?P<user_id>\w+)/?$', views.profile, name='profile'),
  	url(r'^profile/$', views.profile, name='profile'),
  
  	# re_path(r'^profile/(?:(?P<user_type>\w+)/(?:(?P<user_id>\w+))/)?$', views.profile, name='profile'),
  	
  	# path('profile/(buyer|seller)/<int:user_id>[0-9]+/edit/', views.profile, name='edit-profile'),
  	# path('profile/(buyer|seller)/<int:user_id>[0-9]+/', views.profile, name='profile'),
  
  	# path('profile/<str:user_type>/<int:user_id>/edit/', views.profile, name='profile'),
  	# path('profile/<str:user_type>/<int:user_id>/', views.profile, name='profile'),
  
  
  
  	# re_path('profile/buyer/<int:user_id>[0-9]+/', views.profile, name='buyer-profile'),
  	# re_path('profile/seller/<int:user_id>[0-9]+/', views.profile, name='seller-profile'),
  
  	# re_path('profile/buyer/<int:user_id>[0-9]+/edit/', views.profile, name='edit-buyer-profile'),
  	# re_path('profile/seller/<int:user_id>[0-9]+/edit/', views.profile, name='edit-seller-profile'),
  
  
  '''