From bc20d52b33fcc28b159885e44d5cef814c49936b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BB=D0=B5=D1=80?= <101361201+DarkSteelD@users.noreply.github.com> Date: Thu, 9 Jan 2025 12:57:29 +0300 Subject: [PATCH] Fixed --- .../__pycache__/__init__.cpython-310.pyc | Bin 154 -> 166 bytes inventory/__pycache__/apps.cpython-310.pyc | Bin 439 -> 451 bytes inventory/__pycache__/models.cpython-310.pyc | Bin 7363 -> 7375 bytes .../__pycache__/0001_initial.cpython-310.pyc | Bin 3264 -> 3276 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 165 -> 177 bytes logistic/urls.py | 4 ++- logs.log | 26 ++++++++++++++++++ settings/__pycache__/__init__.cpython-310.pyc | Bin 153 -> 165 bytes settings/__pycache__/base.cpython-310.pyc | Bin 1874 -> 1884 bytes settings/__pycache__/dev.cpython-310.pyc | Bin 257 -> 269 bytes urls.py | 2 +- 11 files changed, 30 insertions(+), 2 deletions(-) diff --git a/inventory/__pycache__/__init__.cpython-310.pyc b/inventory/__pycache__/__init__.cpython-310.pyc index c625c7fa45eb7be942e85c49637971d2022c3134..cbdfa45bcb1cd89ef15305075b82801257e96227 100644 GIT binary patch delta 75 zcmbQmxQvlIpO=@50SK-})=lKLG4a&T$j?pHPf0Aw)_2KIF3nBND=F4@&n)pMP0}we b$uCOP%}vZpOiu+#=oVKNm!#%S%-040WD^;I delta 63 zcmZ3+IE#@xpO=@50SI1O*G}ZN(XiDIElw>e)=x<+$}BC`cgasK%}vcKDb`ObO3X{n R$Sh8cFD}V1N}X7(4FFSn6+Zv~ diff --git a/inventory/__pycache__/apps.cpython-310.pyc b/inventory/__pycache__/apps.cpython-310.pyc index 0af69011ba997543826200c2cae0a64677d0db2a..978f29185380e1b0b8e9fbc5a0ea74675eb1ac27 100644 GIT binary patch delta 77 zcmdnae3+R#pO=@50SK-})@|e#VKi~o&&bbB)lW$*%GP(uPcF?(%_}L^ch4;GC{5BY dF3B%S)y+-JOH5A%N$3_=7MG;vPIhN3005E88Pos( delta 65 zcmX@iyq%dlpO=@50SI1O*KXt%VbrkH4=qkDD%MX)EXph`)_2KIF3nBND=F4bD@x2u T&d4lIjV~_AFG`&p%vb;bdW02{ diff --git a/inventory/__pycache__/models.cpython-310.pyc b/inventory/__pycache__/models.cpython-310.pyc index 43bcc61036e675c3ee85ea034a7349350a2c42bc..6c9e0befb7e0210aeb3ef3e484a52f180a106774 100644 GIT binary patch delta 77 zcmX?XdESyMpO=@50SMmD-pI9%$;4ehBR@A)KP9m!Ti+!=ximL5ucTPtJ+s84G)cd> dB)=$CH#adaF+CL|p<7&8T#}l*`2o{oNdWH`92Wop delta 65 zcmX?adDxOGpO=@50SM-IZ{%9Xq+zWeTAW%`te=utlv!G=?~ diff --git a/inventory/migrations/__pycache__/0001_initial.cpython-310.pyc b/inventory/migrations/__pycache__/0001_initial.cpython-310.pyc index 173570502aa3243e0968dc82efc930f61942877b..c4ea00a6ccd2dab29049dc09c6ab150d300218df 100644 GIT binary patch delta 78 zcmX>gc}9{upO=@50SK-})@|gj;WmlT&&bbB)lW$*%GP(uPcF?(%_}L^ch4;GC{5BY eF3B%S)y+-JOH5A%N$3_=7MG;vZeGtV$Or)5qZ-Qq delta 66 zcmX>jc|ejopO=@50SMY0YBzG%aBKMJhZd(673-%Y7G;(e>$~J9m*%GCl@#lz6(!~+ UXJi(q#uu057o~3A%`M0X0HzTZDF6Tf diff --git a/inventory/migrations/__pycache__/__init__.cpython-310.pyc b/inventory/migrations/__pycache__/__init__.cpython-310.pyc index 1a2af7b57c4d57d0fa0e393b878dfe4fdbf176b9..0a89eba36551b833a5b98e8c39d1e8378ea1269e 100644 GIT binary patch delta 75 zcmZ3=xRH@NpO=@50SK-})=lKLF$vMn$j?pHPf0Aw)_2KIF3nBND=F4@&n)pMP0}we b$uCOP%}vZpOiu+#=oVKNm!#%S%r^r7Y}XmB delta 63 zcmdnUxRjAQpO=@50SI1O*G}ZN(eTg@Elw>e)=x<+$}BC`cgasK%}vcKDb`ObO3X{n R$Sh8cFD}V1N}X731^`;K6>9(h diff --git a/logistic/urls.py b/logistic/urls.py index d17f943..173c3bb 100644 --- a/logistic/urls.py +++ b/logistic/urls.py @@ -12,7 +12,7 @@ router_pricing = DefaultRouter() # router_pricing.register(r'example', views.ExampleViewSet) # Swagger schema view for pricing -schema_view_pricing = get_schema_view( +schema_view_logictics = get_schema_view( openapi.Info( title="Store Management API - Pricing", default_version='v1', @@ -27,4 +27,6 @@ schema_view_pricing = get_schema_view( urlpatterns = [ path('generate-path/', views.generate_path, name='generate_path'), + path('swagger/', schema_view_logictics.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui-inventory'), + ] diff --git a/logs.log b/logs.log index 54f6340..6115db0 100644 --- a/logs.log +++ b/logs.log @@ -957,3 +957,29 @@ Watching for file changes with StatReloader Watching for file changes with StatReloader /home/dark/Documents/GitHub/store-management-system/hr/models.py changed, reloading. Watching for file changes with StatReloader +Watching for file changes with StatReloader +Watching for file changes with StatReloader +Not Found: / +"GET / HTTP/1.1" 404 3238 +Not Found: /api/logistic/ +"GET /api/logistic/ HTTP/1.1" 404 3421 +Not Found: /api/logistic/swagger +"GET /api/logistic/swagger HTTP/1.1" 404 3442 +/home/dark/Documents/GitHub/store-management-system/logistic/urls.py changed, reloading. +Watching for file changes with StatReloader +/home/dark/Documents/GitHub/store-management-system/logistic/urls.py changed, reloading. +Watching for file changes with StatReloader +/home/dark/Documents/GitHub/store-management-system/logistic/urls.py changed, reloading. +Watching for file changes with StatReloader +/home/dark/Documents/GitHub/store-management-system/logistic/urls.py changed, reloading. +Watching for file changes with StatReloader +"GET /api/logistic/swagger HTTP/1.1" 301 0 +"GET /api/logistic/swagger/ HTTP/1.1" 200 2246 +"GET /static/drf-yasg/style.css HTTP/1.1" 304 0 +"GET /static/drf-yasg/swagger-ui-dist/swagger-ui.css HTTP/1.1" 304 0 +"GET /static/drf-yasg/swagger-ui-dist/swagger-ui-standalone-preset.js HTTP/1.1" 304 0 +"GET /static/drf-yasg/swagger-ui-init.js HTTP/1.1" 304 0 +"GET /static/drf-yasg/insQ.min.js HTTP/1.1" 304 0 +"GET /static/drf-yasg/swagger-ui-dist/swagger-ui-bundle.js HTTP/1.1" 304 0 +"GET /static/drf-yasg/immutable.min.js HTTP/1.1" 304 0 +"GET /api/logistic/swagger/?format=openapi HTTP/1.1" 200 55780 diff --git a/settings/__pycache__/__init__.cpython-310.pyc b/settings/__pycache__/__init__.cpython-310.pyc index c0f6ea35189c4f5ccd7ac3531be34a3d4848bb27..d653309f64c6ca3750ec2608389e2b34d1745259 100644 GIT binary patch delta 75 zcmbQqxRjAQpO=@50SK-})=lKLG4asP$j?pHPf0Aw)_2KIF3nBND=F4@&n)pMP0}we b$uCOP%}vZpOiu+#=oVKNm!#%S%+~?{V@DZ% delta 63 zcmZ3=IFpe(pO=@50SFRpYbSEsXxQk77N-^!>!&0ZWtJA}yW}UA=BDPA6ziuICFUh( RWEQ8!7nkH0rB1BY0suHc6te&T diff --git a/settings/__pycache__/base.cpython-310.pyc b/settings/__pycache__/base.cpython-310.pyc index 92793c017290178b83ab9e0d03d6bd46554ba675..f28b098ebaa75aeb908807a2b97b14b3b24cd47c 100644 GIT binary patch delta 50 zcmcb_cZZKRpO=@50SMmDu1^=*$ZN>L$UoVht9Aj!O0fvDgeG|38(-7 diff --git a/settings/__pycache__/dev.cpython-310.pyc b/settings/__pycache__/dev.cpython-310.pyc index 74a028f38e88642b630ce78a3c3cbdd1513adf25..547bf84bfe113f741081a042e5161194aed96e4f 100644 GIT binary patch delta 75 zcmZo<>Sf~2=jG*M0D`NLbrZQ4n>g!d$~J9m*%GCl@#l{XO?)BCg~TK b!&0ZWtJA}yW}UA=BDPA6ziuICFUh( RWEQ8!7nkH0rA~aL4FFH?6{P?G diff --git a/urls.py b/urls.py index fedd945..1187a41 100644 --- a/urls.py +++ b/urls.py @@ -8,6 +8,6 @@ urlpatterns = [ path('api/goods-reception/', include('goods_reception.urls')), path('api/warehouse/', include('warehouse.urls')), path('api/hr/', include('hr.urls')), - path('logistic/', include('logistic.urls')), + path('api/logistic/', include('logistic.urls')), path('api/hq/', include('hq.urls')), ]