<reponame>beattykariuki/The-Hoodwatch
from django.conf.urls import url
from . import views
from django.conf import settings
from django.conf.urls.static import static

urlpatterns=[
  url(r'^$',views.index,name = 'index'),
  url(r'^home/$',views.home,name = 'home'),
  url(r'^search/',views.search_business, name='search_business'),
  url(r'^add_hood/', views.add_hood, name='add_hood'),
  url(r'^join/(\d+)',views.join_hood,name='join_hood'),
  url(r'^leave_hood/(\d+)',views.leave_hood,name = 'leave_hood'),
  url(r'^delete_hood/(\d+)',views.delete_hood,name = 'delete_hood'),
  url(r'^delete_post/(\d+)',views.delete_post,name = 'delete_post'),
  url(r'^add_business/$',views.add_business,name= 'add_business'),
  url(r'^businesses/$',views.added_businesses,name= 'added_businesses'),
  url(r'^profile/$',views.profile,name = 'profile'),
  url(r'^update_profile/$',views.update_profile,name= 'update_profile'),
  url(r'^add_post/',views.add_post,name = 'add_post'),
  url(r'^posts/$',views.posts,name = 'posts'),
  url(r'^all_post/$', views.all_post, name='all_post'),
  url(r'search/', views.search_results, name='search_results'),
  url(r'^delete_business/(\d+)',views.delete_business,name = 'delete_business'),
]
if settings.DEBUG:
    urlpatterns+= static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)

from django.conf.urls import url
from . import views
from django.conf import settings
from django.conf.urls.static import static

urlpatterns=[
  url(r'^$',views.index,name = 'index'),
  url(r'^home/$',views.home,name = 'home'),
  url(r'^search/',views.search_business, name='search_business'),
  url(r'^add_hood/', views.add_hood, name='add_hood'),
  url(r'^join/(\d+)',views.join_hood,name='join_hood'),
  url(r'^leave_hood/(\d+)',views.leave_hood,name = 'leave_hood'),
  url(r'^delete_hood/(\d+)',views.delete_hood,name = 'delete_hood'),
  url(r'^delete_post/(\d+)',views.delete_post,name = 'delete_post'),
  url(r'^add_business/$',views.add_business,name= 'add_business'),
  url(r'^businesses/$',views.added_businesses,name= 'added_businesses'),
  url(r'^profile/$',views.profile,name = 'profile'),
  url(r'^update_profile/$',views.update_profile,name= 'update_profile'),
  url(r'^add_post/',views.add_post,name = 'add_post'),
  url(r'^posts/$',views.posts,name = 'posts'),
  url(r'^all_post/$', views.all_post, name='all_post'),
  url(r'search/', views.search_results, name='search_results'),
  url(r'^delete_business/(\d+)',views.delete_business,name = 'delete_business'),
]
if settings.DEBUG:
    urlpatterns+= static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)