2025-04-29 15:43:53 +03:30
|
|
|
"""
|
|
|
|
|
URL configuration for Rasaddam_Backend project.
|
|
|
|
|
|
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
|
|
|
https://docs.djangoproject.com/en/5.2/topics/http/urls/
|
|
|
|
|
Examples:
|
|
|
|
|
Function views
|
|
|
|
|
1. Add an import: from my_app import views
|
|
|
|
|
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
|
|
|
|
Class-based views
|
|
|
|
|
1. Add an import: from other_app.views import Home
|
|
|
|
|
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
|
|
|
|
Including another URLconf
|
|
|
|
|
1. Import the include() function: from django.urls import include, path
|
|
|
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
|
|
|
"""
|
|
|
|
|
from django.contrib import admin
|
2025-05-04 15:24:28 +03:30
|
|
|
from django.urls import path, include
|
2025-05-24 15:01:55 +03:30
|
|
|
from apps.core.swagger import schema_view
|
2025-05-27 15:09:22 +03:30
|
|
|
from django.conf.urls import (
|
|
|
|
|
handler400,
|
|
|
|
|
handler403,
|
|
|
|
|
handler500,
|
|
|
|
|
handler404,
|
|
|
|
|
)
|
|
|
|
|
|
2025-07-24 16:02:08 +03:30
|
|
|
|
2025-05-27 15:09:22 +03:30
|
|
|
# handler500 = 'apps.core.error_handler.handler500' # noqa
|
2025-04-29 15:43:53 +03:30
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path('admin/', admin.site.urls),
|
2025-05-24 15:01:55 +03:30
|
|
|
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
2025-05-04 15:24:28 +03:30
|
|
|
path('auth/', include('apps.authentication.urls')),
|
2025-05-24 15:01:55 +03:30
|
|
|
path('auth/', include('apps.authorization.urls')),
|
2025-05-04 15:24:28 +03:30
|
|
|
path('', include('apps.captcha_app.api.v1.urls')),
|
2025-05-05 15:25:46 +03:30
|
|
|
path('', include('apps.core.urls')),
|
2025-05-24 15:01:55 +03:30
|
|
|
path('herd/', include('apps.herd.urls')),
|
|
|
|
|
path('livestock/', include('apps.livestock.urls')),
|
|
|
|
|
path('tag/', include('apps.tag.urls')),
|
2025-07-31 14:22:27 +03:30
|
|
|
path('filter/', include('apps.search.urls')),
|
2025-06-07 09:18:27 +03:30
|
|
|
path('product/', include('apps.product.urls')),
|
2025-07-02 15:42:51 +03:30
|
|
|
path('warehouse/', include('apps.warehouse.urls')),
|
2025-07-22 08:16:40 +03:30
|
|
|
path('pos_device/', include('apps.pos_device.urls')),
|
2025-09-29 16:23:22 +03:30
|
|
|
path('notification/', include('apps.notification.urls')),
|
2025-05-24 15:01:55 +03:30
|
|
|
path('swagger/', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
|
2025-04-29 15:43:53 +03:30
|
|
|
]
|