How tung24092004/ndt-motel works
This Django motel-management application supports tenant and administrator workflows. A tenant can browse rooms, submit a booking and deposit, then access contract, invoice, and payment services; administrators manage bookings, properties, and contracts. Separate capabilities cover co-tenancy, repairs, policies, notifications, and smart-room access, including face-related operations. The views are the request-handling layer, domain services handle selected booking and contract rules, and Django models provide persistent records. README content was absent, so unsampled capabilities are represented only where supported by the source index and routes.
Main entry points: urls.py URL routes · models.py Domain records · views_hop_dong.py Contract management · views_dat_phong.py Booking requests
Components 24
Request handling
- URL routes
motel_management/urls.py - Account access
core/views_dang_nhap.py - Tenant profile
core/views_tai_khoan.py
Stays and rooms
- Booking requests
core/views_dat_phong.py - Booking administration
core/views_quan_tri_dat_phong.py - Booking service
core/dich_vu/dat_phong.py - Contract management
core/views_hop_dong.py - Contract service
core/dich_vu/hop_dong.py - Room management
core/views_phong.py - Property administration
core/views_quan_tri.py - Lease extensions
core/views_gia_han.py
Tenant operations
- Invoice management
core/views_hoa_don.py - Tenant payments
core/views_thanh_toan.py - Co-tenancy
core/views_o_ghep.py - Repair requests
core/views_sua_chua.py - Policies
core/views_chinh_sach.py - Notifications
core/views_thong_bao.py
Smart access
- Smart-room access
core/views_smart_room.py
Shared services
- Domain records
core/models.py - Lease date rules
core/dich_vu/ngay_thue.py - Role checks
core/dich_vu/phan_quyen.py - Activity audit
core/tien_ich.py
Other components
- Tenant
- Administrator
Connections 41
- Tenant → URL routes: requests
motel_management/urls.py - Administrator → URL routes: requests
motel_management/urls.py - URL routes → Booking requests: dispatches
motel_management/urls.py - URL routes → Booking administration: dispatches
motel_management/urls.py - URL routes → Contract management: dispatches
motel_management/urls.py - URL routes → Room management: dispatches
motel_management/urls.py - URL routes → Property administration: dispatches
motel_management/urls.py - URL routes → Lease extensions: dispatches
motel_management/urls.py - URL routes → Invoice management: dispatches
motel_management/urls.py - URL routes → Tenant payments: dispatches
motel_management/urls.py - URL routes → Co-tenancy: dispatches
motel_management/urls.py - URL routes → Repair requests: dispatches
motel_management/urls.py - URL routes → Policies: dispatches
motel_management/urls.py - URL routes → Notifications: dispatches
motel_management/urls.py - URL routes → Smart-room access: dispatches
motel_management/urls.py - URL routes → Account access: dispatches
motel_management/urls.py - URL routes → Tenant profile: dispatches
motel_management/urls.py - Booking requests → Booking service: uses
core/views_dat_phong.py - Booking requests → Domain records: reads and writes
core/views_dat_phong.py - Booking service → Domain records: reads and writes
core/dich_vu/dat_phong.py - Booking administration → Contract service: confirms booking
- Contract service → Domain records: creates contract
core/dich_vu/hop_dong.py - Contract service → Lease date rules: calculates dates
core/dich_vu/hop_dong.py - Contract management → Domain records: reads and writes
core/views_hop_dong.py - Contract management → Lease date rules: uses
core/views_hop_dong.py - Contract management → Role checks: checks roles
core/views_hop_dong.py - Room management → Domain records: reads and writes
core/views_phong.py - Property administration → Domain records: reads and writes
core/views_quan_tri.py - Lease extensions → Domain records: reads and writes
core/views_gia_han.py - Lease extensions → Contract management: uses
core/views_gia_han.py - Invoice management → Domain records: reads and writes
core/views_hoa_don.py - Tenant payments → Domain records: reads and writes
- Co-tenancy → Domain records: reads and writes
core/views_o_ghep.py - Repair requests → Domain records: reads and writes
core/views_sua_chua.py - Policies → Domain records: reads and writes
core/views_chinh_sach.py - Notifications → Domain records: reads and writes
- Smart-room access → Domain records: reads and writes
core/views_smart_room.py - Tenant profile → Domain records: reads and writes
core/views_tai_khoan.py - Account access → Domain records: uses accounts
core/views_dang_nhap.py - Property administration → Activity audit: records actions
core/views_quan_tri.py - Activity audit → Domain records: writes audit record
core/tien_ich.py