"""pimek URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.conf.urls import url
from main import views
from django.contrib import admin
from django.urls import path

urlpatterns = [
    path('admin/', admin.site.urls),
    path('',  views.index, name='index'),
    path('table',  views.table, name='table'),   
    path('tenants',  views.tenants, name='tenants'),   
    path('edit',  views.edit, name='edit'),   
    path('add_income',  views.add_income, name='add_income'),
    path('save_income',  views.save_income, name='save_income'),
    path('add_expense',  views.add_expense, name='add_expense'),
    path('save_expense',  views.save_expense, name='save_expense'),
    path('add_user',  views.create_tenant, name='add_user'),
    path('get_data',  views.get_data, name='get_data'),
    path('post_data',  views.post_data, name='post_data'),
    path('settings',  views.settings, name='settings'),
    path('save_settings',  views.save_settings, name='save_settings'),
    # path('add',  views.add, name='add'),
    # path('add_leader',  views.add_leader, name='add_leader'),
    # path('add_user',  views.create_tenant, name='add_user'),
    # path('subcategory/<str:slug>',  views.subcategory, name='subcategory'),
    # path('single/<str:slug>',  views.single, name='single'),
    # path('checkout/',  views.checkout, name='checkout'),
    # path('search/',  views.search, name='search'),
    # path('/product/<int:id>/',  views.product, name='product'), 
]