from django.conf import settings from django.contrib.staticfiles.views import serve as serve_static from django.urls import path, re_path from core import views urlpatterns = [ path("", views.home, name="home"), path("health/", views.health, name="health"), path("imports/", views.imports_index, name="imports-index"), path("reports/monthly/", views.monthly_report, name="monthly-report"), path("reconciliations/", views.reconciliation_index, name="reconciliation-index"), path( "reconciliations//", views.reconciliation_history, name="reconciliation-history", ), path("exports/", views.export_index, name="export-index"), path("exports/download/", views.export_download, name="export-download"), path("transactions/", views.transaction_list, name="transaction-list"), path("transactions/new/", views.transaction_create, name="transaction-create"), path("transactions//", views.transaction_detail, name="transaction-detail"), path("transactions//annotate/", views.transaction_annotate, name="transaction-annotate"), path("accounts/", views.account_list, name="account-list"), path("accounts/new/", views.account_create, name="account-create"), path("accounts//archive/", views.account_archive, name="account-archive"), path("categories/", views.category_list, name="category-list"), path("categories/new/", views.category_create, name="category-create"), path("categories//archive/", views.category_archive, name="category-archive"), path("category-groups/", views.category_group_list, name="category-group-list"), path("category-groups/new/", views.category_group_create, name="category-group-create"), path("category-groups//archive/", views.category_group_archive, name="category-group-archive"), path("payees/", views.payee_list, name="payee-list"), path("payees/new/", views.payee_create, name="payee-create"), path("payees//archive/", views.payee_archive, name="payee-archive"), ] if settings.LOCAL_SERVE_STATIC: urlpatterns.append( re_path(r"^static/(?P.*)$", serve_static, {"insecure": True}, name="local-static") )