mirror of
https://github.com/ada-dmitry/Project_WEB.git
synced 2026-09-24 08:00:20 +00:00
- Created .gitignore to exclude Python-generated files and virtual environments. - Added .python-version to specify Python version 3.13. - Implemented models for Client, Brigade, Service, Order, and CompletedWork. - Created Django admin configurations for managing models. - Added management command to seed the database with test data. - Created initial migrations for the models. - Developed views and templates for listing and detailing orders, clients, and brigades. - Set up URL routing for the cleaning app. - Configured Django settings and WSGI/ASGI entry points. - Added basic test structure in tests.py. - Included project metadata in pyproject.toml and uv.lock.
14 lines
422 B
Python
14 lines
422 B
Python
from django.urls import path
|
|
from . import views
|
|
|
|
app_name = 'cleaning'
|
|
|
|
urlpatterns = [
|
|
path('', views.index, name='index'),
|
|
path('orders/', views.order_list, name='order_list'),
|
|
path('order/<int:order_id>/', views.order_detail, name='order_detail'),
|
|
path('brigades/<int:pk>/', views.brigade_detail, name='brigade_detail'),
|
|
path('clients/<int:pk>/', views.client_detail, name='client_detail'),
|
|
|
|
]
|