Quản lý Loại Báo Cứu Trong Django 4: Không Gian Tên Ứng Dụng Và Phân Trang
1. Không gian tên ứng dụng app_name
from django.urls import path
from .views import CreateRepairType, UpdateRepairType, DeleteRepairType, RepairTypeListView
namespace_app = 'maintenance'
urlpatterns = [
path('repair_types/', RepairTypeListView.as_view(), name='list_repair_type'),
path('repair_types/new/', CreateRepairType.as_view( ...
Đăng vào ngày 16 tháng 7 lúc 02:34