- Add utility to parse raw address strings into structured Province, District, and Municipality data. - Support both English and Nepali (Devanagari) inputs with smart matching for character variations. - Implement comprehensive test suite for address normalization logic. - Add real-time address normalization demo to the example app using HTMX. - Update README with documentation and usage examples for the new utility.
21 lines
786 B
Python
21 lines
786 B
Python
from . import views
|
|
from rest_framework.routers import DefaultRouter
|
|
from django.urls import path
|
|
|
|
app_name = "demo"
|
|
|
|
router = DefaultRouter()
|
|
router.register("api/persons", views.PersonViewSet, basename="person-api")
|
|
router.register("api/citizens", views.CitizenViewSet, basename="citizen-api")
|
|
router.register("api/audited", views.AuditedPersonViewSet, basename="audited-api")
|
|
router.register(
|
|
"api/transactions", views.TransactionViewSet, basename="transaction-api"
|
|
)
|
|
|
|
urlpatterns = [
|
|
path("", views.person_list, name="person-list"),
|
|
path("add/", views.person_create, name="person-create"),
|
|
path("transactions/add/", views.transaction_create, name="transaction-create"),
|
|
path("normalize/", views.address_normalize_demo, name="address-normalize"),
|
|
] + router.urls
|