from django.urls import path,include
from . import views

urlpatterns = [
    path('home/', views.home, name = 'home'),
    path('add_hood/',views.uploadNeighbourhood, name = 'add_hood'),
    path('viewhood/',views.viewHood, name = 'viewhood'),
    path('hood/<int:pk>/',views.hood, name = 'hood'),
    path('add_bizna/',views.uploadBuisness, name = 'add_bizna'),
    path('bizna/',views.viewBizna, name = 'view_bizna'),
    path('viewbizna/<int:pk>/',views.bizna, name = 'bizna'),
    path('post/',views.create_post, name = 'post'),
    path('posts/',views.viewPost, name = 'posts'),
    path('searchbizna/', views.searchBizna, name="search_results"),
    path('searchhood/', views.searchHood, name="search_res"),
    path('join_hood/<id>', views.join_neighbourhood, name='join-hood'),
    path('leave_hood/<id>', views.leave_neighbourhood, name='leave-hood'),
]
[(5, 'django.urls.path', 'path', (['"""home/"""', 'views.home'], {'name': '"""home"""'}), False, 'from django.urls import path, include\n'), (6, 'django.urls.path', 'path', (['"""add_hood/"""', 'views.uploadNeighbourhood'], {'name': '"""add_hood"""'}), False, 'from django.urls import path, include\n'), (7, 'django.urls.path', 'path', (['"""viewhood/"""', 'views.viewHood'], {'name': '"""viewhood"""'}), False, 'from django.urls import path, include\n'), (8, 'django.urls.path', 'path', (['"""hood/<int:pk>/"""', 'views.hood'], {'name': '"""hood"""'}), False, 'from django.urls import path, include\n'), (9, 'django.urls.path', 'path', (['"""add_bizna/"""', 'views.uploadBuisness'], {'name': '"""add_bizna"""'}), False, 'from django.urls import path, include\n'), (10, 'django.urls.path', 'path', (['"""bizna/"""', 'views.viewBizna'], {'name': '"""view_bizna"""'}), False, 'from django.urls import path, include\n'), (11, 'django.urls.path', 'path', (['"""viewbizna/<int:pk>/"""', 'views.bizna'], {'name': '"""bizna"""'}), False, 'from django.urls import path, include\n'), (12, 'django.urls.path', 'path', (['"""post/"""', 'views.create_post'], {'name': '"""post"""'}), False, 'from django.urls import path, include\n'), (13, 'django.urls.path', 'path', (['"""posts/"""', 'views.viewPost'], {'name': '"""posts"""'}), False, 'from django.urls import path, include\n'), (14, 'django.urls.path', 'path', (['"""searchbizna/"""', 'views.searchBizna'], {'name': '"""search_results"""'}), False, 'from django.urls import path, include\n'), (15, 'django.urls.path', 'path', (['"""searchhood/"""', 'views.searchHood'], {'name': '"""search_res"""'}), False, 'from django.urls import path, include\n'), (16, 'django.urls.path', 'path', (['"""join_hood/<id>"""', 'views.join_neighbourhood'], {'name': '"""join-hood"""'}), False, 'from django.urls import path, include\n'), (17, 'django.urls.path', 'path', (['"""leave_hood/<id>"""', 'views.leave_neighbourhood'], {'name': '"""leave-hood"""'}), False, 'from django.urls import path, include\n')]