feat: Модуль "Справочник товаров"
Создать структуру базы данных для товаров:
Поля: наименование, штрих-код, срок годности, размеры, единицы измерения, производитель, категория товара, температурные условия хранения, акции (тип "1+1", "2+1").
Реализовать функционал:
Добавление, редактирование и удаление карточек товаров.
Проверка на дублирование данных (штрих-код).
Валидация данных (например, срок годности).
2 weeks ago
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 2456
Not Found: /goods-reception
"GET /goods-reception HTTP/1.1" 404 2519
"GET /goods-reception/api HTTP/1.1" 301 0
"GET /goods-reception/api/ HTTP/1.1" 200 5454
"GET /static/rest_framework/css/prettify.css HTTP/1.1" 200 817
"GET /static/rest_framework/css/bootstrap-tweaks.css HTTP/1.1" 200 3426
"GET /static/rest_framework/css/default.css HTTP/1.1" 200 1152
"GET /static/rest_framework/js/ajax-form.js HTTP/1.1" 200 3796
"GET /static/rest_framework/js/prettify-min.js HTTP/1.1" 200 13632
"GET /static/rest_framework/css/bootstrap.min.css HTTP/1.1" 200 121457
"GET /static/rest_framework/js/default.js HTTP/1.1" 200 1268
"GET /static/rest_framework/js/csrf.js HTTP/1.1" 200 1793
"GET /static/rest_framework/js/jquery-3.7.1.min.js HTTP/1.1" 200 87533
"GET /static/rest_framework/js/load-ajax-form.js HTTP/1.1" 200 59
"GET /static/rest_framework/js/bootstrap.min.js HTTP/1.1" 200 39680
"GET /static/rest_framework/img/grid.png HTTP/1.1" 200 1458
"GET /goods-reception/api/ HTTP/1.1" 200 5454
"OPTIONS /goods-reception/api/ HTTP/1.1" 200 5662
"GET /goods-reception/api/ HTTP/1.1" 200 5454
Not Found: /goods-reception/swagger
"GET /goods-reception/swagger HTTP/1.1" 404 2637
"GET /api/swagger/ HTTP/1.1" 200 2456
"GET /api/swagger/?format=openapi HTTP/1.1" 200 21094
"GET /goods-reception/api/goods-receptions/ HTTP/1.1" 200 2
"GET /admin/ HTTP/1.1" 200 7189
/Users/darius/Documents/franchise_store/goods_reception/admin.py changed, reloading.
Watching for file changes with StatReloader
"GET /admin/ HTTP/1.1" 200 8161
"GET /admin/goods_reception/goodsreception/ HTTP/1.1" 200 10520
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /static/admin/img/icon-viewlink.svg HTTP/1.1" 200 581
"GET /admin/ HTTP/1.1" 200 8161
"GET /admin/product_directory/product/ HTTP/1.1" 200 11170
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/ HTTP/1.1" 200 8161
"GET /admin/goods_reception/goodsreception/ HTTP/1.1" 200 10520
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/goods_reception/goodsreception/add/ HTTP/1.1" 200 13670
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"POST /admin/goods_reception/goodsreception/add/ HTTP/1.1" 302 0
"GET /admin/goods_reception/goodsreception/ HTTP/1.1" 200 13308
"GET /static/admin/img/icon-no.svg HTTP/1.1" 200 560
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/goods_reception/goodsreception/1/change/ HTTP/1.1" 200 13985
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/goods_reception/goodsreception/ HTTP/1.1" 200 13062
Watching for file changes with StatReloader
"GET /admin/ HTTP/1.1" 200 9417
"GET /admin/ HTTP/1.1" 200 9417
"GET /admin/warehouse/stock/ HTTP/1.1" 200 10410
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/ HTTP/1.1" 200 9417
/Users/darius/Documents/franchise_store/warehouse/models.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/models.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/models.py changed, reloading.
Watching for file changes with StatReloader
Watching for file changes with StatReloader
"GET /admin/ HTTP/1.1" 200 10808
"GET /admin/warehouse/storagelocation/ HTTP/1.1" 200 11604
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/storagelocation/add/ HTTP/1.1" 200 13587
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/storagelocation/ HTTP/1.1" 200 11604
"GET /admin/ HTTP/1.1" 200 10808
"GET /admin/warehouse/warehouse/ HTTP/1.1" 200 10710
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/warehouse/add/ HTTP/1.1" 200 12376
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"POST /admin/warehouse/warehouse/add/ HTTP/1.1" 302 0
"GET /admin/warehouse/warehouse/ HTTP/1.1" 200 12695
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/warehouse/1/change/ HTTP/1.1" 200 12651
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/storagelocation/ HTTP/1.1" 200 11604
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/storagelocation/add/ HTTP/1.1" 200 13632
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"POST /admin/warehouse/storagelocation/add/ HTTP/1.1" 302 0
"GET /admin/warehouse/storagelocation/ HTTP/1.1" 200 13712
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 12593
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/stockoperation/add/ HTTP/1.1" 200 19071
"GET /static/admin/js/calendar.js HTTP/1.1" 200 9141
"GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 200 19319
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /static/admin/img/icon-calendar.svg HTTP/1.1" 200 1086
"GET /static/admin/img/calendar-icons.svg HTTP/1.1" 200 2455
"POST /admin/warehouse/stockoperation/add/ HTTP/1.1" 302 0
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 15070
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/stockoperation/1/change/ HTTP/1.1" 200 19394
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 14799
Watching for file changes with StatReloader
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 14886
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
Watching for file changes with StatReloader
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 14914
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
/Users/darius/Documents/franchise_store/warehouse/admin.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/admin.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/admin.py changed, reloading.
Watching for file changes with StatReloader
Watching for file changes with StatReloader
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 14886
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/stockoperation/statistics/ HTTP/1.1" 200 24699
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 14886
"GET /admin/warehouse/stockoperation/add/ HTTP/1.1" 200 19071
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/product_directory/product/1/change/?_to_field=id&_popup=1 HTTP/1.1" 200 10158
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/product_directory/product/1/change/?_to_field=id HTTP/1.1" 200 17244
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/stockoperation/add/ HTTP/1.1" 200 19071
"GET /admin/product_directory/product/add/?_to_field=id&_popup=1 HTTP/1.1" 200 10066
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"POST /admin/warehouse/stockoperation/add/ HTTP/1.1" 302 0
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 15687
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/stockoperation/statistics/ HTTP/1.1" 200 28103
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 15416
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/stockoperation/statistics/ HTTP/1.1" 200 28103
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 15416
Watching for file changes with StatReloader
<<<<<<< HEAD
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 15416
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 15416
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/ HTTP/1.1" 200 12404
"GET /admin/goods_reception/goodsreception/ HTTP/1.1" 200 14746
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/product_directory/product/ HTTP/1.1" 200 12854
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/storagelocation/ HTTP/1.1" 200 13458
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/warehouse/ HTTP/1.1" 200 12479
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 15416
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/stockoperation/statistics/ HTTP/1.1" 200 28103
"GET /admin/warehouse/stockoperation/ HTTP/1.1" 200 15416
"GET /admin/warehouse/stockoperation/?_facets=True HTTP/1.1" 200 15862
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /static/admin/img/icon-hidelink.svg HTTP/1.1" 200 784
"GET /admin/warehouse/stockoperation/? HTTP/1.1" 200 15416
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/stockoperation/?_facets=True HTTP/1.1" 200 15862
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/warehouse/stockoperation/? HTTP/1.1" 200 15416
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
Not Found: /
"GET / HTTP/1.1" 404 2609
"GET /admin/warehouse/stockoperation/? HTTP/1.1" 200 15416
/Users/darius/Documents/franchise_store/warehouse/urls.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/urls.py changed, reloading.
Watching for file changes with StatReloader
Not Found: /scan-barcode
"GET /scan-barcode HTTP/1.1" 404 2663
"GET /warehouse/scan-barcode HTTP/1.1" 301 0
Method Not Allowed (GET): /warehouse/scan-barcode/
Method Not Allowed: /warehouse/scan-barcode/
"GET /warehouse/scan-barcode/ HTTP/1.1" 405 0
Method Not Allowed (GET): /warehouse/scan-barcode/
Method Not Allowed: /warehouse/scan-barcode/
"GET /warehouse/scan-barcode/ HTTP/1.1" 405 0
/Users/darius/Documents/franchise_store/warehouse/urls.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/urls.py changed, reloading.
Watching for file changes with StatReloader
Method Not Allowed (GET): /warehouse/scan-barcode/
Method Not Allowed: /warehouse/scan-barcode/
"GET /warehouse/scan-barcode/ HTTP/1.1" 405 0
Watching for file changes with StatReloader
Method Not Allowed (GET): /warehouse/scan-barcode/
Method Not Allowed: /warehouse/scan-barcode/
"GET /warehouse/scan-barcode/ HTTP/1.1" 405 0
"GET /warehouse/scan-barcode-page/ HTTP/1.1" 200 1745
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/urls.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/urls.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/urls.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/urls.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/urls.py changed, reloading.
Watching for file changes with StatReloader
Not Found: /warehouse/scan-barcode-page/
"GET /warehouse/scan-barcode-page/ HTTP/1.1" 404 3373
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 200 3361
"GET /admin/ HTTP/1.1" 200 12404
"GET /admin/product_directory/product/ HTTP/1.1" 200 12854
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
Internal Server Error: /warehouse/scan-barcode/
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 65, in _view_wrapper
return view_func(request, *args, **kwargs)
File "/Users/darius/Documents/franchise_store/warehouse/views.py", line 16, in process_barcode
country_code = int(barcode[:3])
ValueError: invalid literal for int() with base 10: 'som'
"POST /warehouse/scan-barcode/ HTTP/1.1" 500 66357
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 200 3361
"GET /admin/product_directory/product/add/ HTTP/1.1" 200 16845
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"POST /admin/product_directory/product/add/ HTTP/1.1" 200 17101
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"POST /admin/product_directory/product/add/ HTTP/1.1" 302 0
"GET /admin/product_directory/product/ HTTP/1.1" 200 13509
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/product_directory/product/2/change/ HTTP/1.1" 200 17176
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"POST /warehouse/scan-barcode/ HTTP/1.1" 200 222
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 200 3361
"POST /warehouse/scan-barcode/ HTTP/1.1" 200 222
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 200 3370
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 200 4245
Not Found: /warehouse/scan-barcode/4820024731015318/
"GET /warehouse/scan-barcode/4820024731015318/ HTTP/1.1" 404 3409
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 200 4440
Not Found: /process-barcode/
"POST /process-barcode/ HTTP/1.1" 404 2676
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 200 4440
Not Found: /process-barcode/
"POST /process-barcode/ HTTP/1.1" 404 2676
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 200 4440
Not Found: /process-barcode/
"POST /process-barcode/ HTTP/1.1" 404 2676
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 200 4440
Not Found: /process-barcode/
"POST /process-barcode/ HTTP/1.1" 404 2676
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 200 4450
Not Found: /warehouse/process-barcode/
"POST /warehouse/process-barcode/ HTTP/1.1" 404 3368
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 200 4245
Not Found: /warehouse/scan-barcode/4820024700016/
"GET /warehouse/scan-barcode/4820024700016/ HTTP/1.1" 404 3400
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 200 4511
Not Found: /warehouse/process-barcode/
"POST /warehouse/process-barcode/ HTTP/1.1" 404 3368
Not Found: /docs/swagger
"GET /docs/swagger HTTP/1.1" 404 2663
Not Found: /favicon.ico
"GET /favicon.ico HTTP/1.1" 404 2660
"GET /api/swagger HTTP/1.1" 301 0
"GET /api/swagger/ HTTP/1.1" 200 2227
"GET /static/drf-yasg/style.css HTTP/1.1" 200 1047
"GET /static/drf-yasg/insQ.min.js HTTP/1.1" 200 2093
"GET /static/drf-yasg/swagger-ui-init.js HTTP/1.1" 200 15480
"GET /static/drf-yasg/immutable.min.js HTTP/1.1" 200 56904
"GET /static/drf-yasg/swagger-ui-dist/swagger-ui-standalone-preset.js HTTP/1.1" 200 322863
"GET /static/drf-yasg/swagger-ui-dist/swagger-ui.css HTTP/1.1" 200 145206
"GET /static/drf-yasg/swagger-ui-dist/swagger-ui-bundle.js HTTP/1.1" 200 1046583
"GET /api/swagger/?format=openapi HTTP/1.1" 200 23941
"GET /static/drf-yasg/swagger-ui-dist/favicon-32x32.png HTTP/1.1" 200 628
"GET /static/drf-yasg/swagger-ui-dist/favicon-32x32.png HTTP/1.1" 200 628
=======
Not Found: /
"GET / HTTP/1.1" 404 2782
"GET /api/pricing/ HTTP/1.1" 200 11324
"GET /static/rest_framework/css/bootstrap.min.css HTTP/1.1" 304 0
"GET /static/rest_framework/css/prettify.css HTTP/1.1" 304 0
"GET /static/rest_framework/css/bootstrap-tweaks.css HTTP/1.1" 304 0
"GET /static/rest_framework/js/csrf.js HTTP/1.1" 304 0
"GET /static/rest_framework/js/jquery-3.7.1.min.js HTTP/1.1" 304 0
"GET /static/rest_framework/css/default.css HTTP/1.1" 304 0
"GET /static/rest_framework/js/bootstrap.min.js HTTP/1.1" 304 0
"GET /static/rest_framework/js/ajax-form.js HTTP/1.1" 304 0
"GET /static/rest_framework/js/prettify-min.js HTTP/1.1" 304 0
"GET /static/rest_framework/js/default.js HTTP/1.1" 304 0
"GET /static/rest_framework/js/load-ajax-form.js HTTP/1.1" 304 0
"GET /static/rest_framework/img/grid.png HTTP/1.1" 304 0
"GET /api/pricing/swagger/ HTTP/1.1" 200 2245
"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/immutable.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/insQ.min.js HTTP/1.1" 304 0
"GET /static/drf-yasg/swagger-ui-init.js HTTP/1.1" 304 0
"GET /api/pricing/swagger/?format=openapi HTTP/1.1" 200 44272
Watching for file changes with StatReloader
Watching for file changes with StatReloader
Not Found: /
"GET / HTTP/1.1" 404 2932
Not Found: /favicon.ico
"GET /api/hr/ HTTP/1.1" 200 10827
"GET /static/rest_framework/css/bootstrap.min.css HTTP/1.1" 304 0
"GET /static/rest_framework/css/bootstrap-tweaks.css HTTP/1.1" 304 0
"GET /static/rest_framework/js/csrf.js HTTP/1.1" 304 0
"GET /static/rest_framework/css/prettify.css HTTP/1.1" 304 0
"GET /static/rest_framework/js/jquery-3.7.1.min.js HTTP/1.1" 304 0
"GET /static/rest_framework/css/default.css HTTP/1.1" 304 0
"GET /static/rest_framework/js/prettify-min.js HTTP/1.1" 304 0
"GET /static/rest_framework/js/ajax-form.js HTTP/1.1" 304 0
"GET /static/rest_framework/js/bootstrap.min.js HTTP/1.1" 304 0
"GET /static/rest_framework/js/default.js HTTP/1.1" 304 0
"GET /static/rest_framework/js/load-ajax-form.js HTTP/1.1" 304 0
"GET /static/rest_framework/img/grid.png HTTP/1.1" 304 0
"GET /api/hr/swagger HTTP/1.1" 301 0
"GET /api/hr/swagger/ HTTP/1.1" 200 2229
"GET /static/drf-yasg/swagger-ui-dist/swagger-ui-standalone-preset.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/swagger-ui-init.js HTTP/1.1" 304 0
"GET /static/drf-yasg/style.css HTTP/1.1" 200 1047
"GET /static/drf-yasg/immutable.min.js HTTP/1.1" 304 0
"GET /static/drf-yasg/swagger-ui-dist/swagger-ui.css HTTP/1.1" 200 145206
"GET /api/hr/swagger/?format=openapi HTTP/1.1" 200 54931
>>>>>>> fae08514607270546d1654be8834144409b5fe25
Watching for file changes with StatReloader
Not Found: /
"GET / HTTP/1.1" 404 2932
Not Found: /warehouse
"GET /warehouse HTTP/1.1" 404 2977
Not Found: /warehouse/warehouses
"GET /warehouse/warehouses HTTP/1.1" 404 3010
"GET /api/warehouse HTTP/1.1" 301 0
Internal Server Error: /api/warehouse/
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/darius/Documents/franchise_store/warehouse/views.py", line 57, in dashboard
return render(request, 'dashboard.html', {
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/shortcuts.py", line 25, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader.py", line 19, in get_template
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: dashboard.html
"GET /api/warehouse/ HTTP/1.1" 500 79310
"GET /api/warehouse/warehouses HTTP/1.1" 301 0
Internal Server Error: /api/warehouse/warehouses/
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/darius/Documents/franchise_store/warehouse/views.py", line 66, in warehouses_list
return render(request, 'warehouses.html', {'warehouses': warehouses})
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/shortcuts.py", line 25, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader.py", line 19, in get_template
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: warehouses.html
"GET /api/warehouse/warehouses/ HTTP/1.1" 500 78595
Watching for file changes with StatReloader
Internal Server Error: /api/warehouse/
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/backends/django.py", line 107, in render
return self.template.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 171, in render
return self._render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 1008, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 1008, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 969, in render_annotated
return self.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader_tags.py", line 134, in render
compiled_parent = self.get_parent(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader_tags.py", line 131, in get_parent
return self.find_template(parent, context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader_tags.py", line 109, in find_template
template, origin = context.template.engine.find_template(
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/engine.py", line 163, in find_template
raise TemplateDoesNotExist(name, tried=tried)
django.template.exceptions.TemplateDoesNotExist: base.html
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/darius/Documents/franchise_store/warehouse/views.py", line 57, in dashboard
return render(request, 'warehouse/dashboard.html', {
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/shortcuts.py", line 25, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader.py", line 62, in render_to_string
return template.render(context, request)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/backends/django.py", line 109, in render
reraise(exc, self.backend)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/backends/django.py", line 130, in reraise
raise new from exc
django.template.exceptions.TemplateDoesNotExist: base.html
"GET /api/warehouse/ HTTP/1.1" 500 129645
Internal Server Error: /api/warehouse/
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 510, in parse
compile_func = self.tags[command]
KeyError: 'static'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/darius/Documents/franchise_store/warehouse/views.py", line 57, in dashboard
return render(request, 'warehouse/dashboard.html', {
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/shortcuts.py", line 25, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader.py", line 62, in render_to_string
return template.render(context, request)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/backends/django.py", line 107, in render
return self.template.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 171, in render
return self._render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 1008, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 1008, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 969, in render_annotated
return self.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader_tags.py", line 134, in render
compiled_parent = self.get_parent(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader_tags.py", line 131, in get_parent
return self.find_template(parent, context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader_tags.py", line 109, in find_template
template, origin = context.template.engine.find_template(
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/engine.py", line 159, in find_template
template = loader.get_template(name, skip=skip)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loaders/cached.py", line 57, in get_template
template = super().get_template(template_name, skip)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loaders/base.py", line 28, in get_template
return Template(
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 154, in __init__
self.nodelist = self.compile_nodelist()
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 196, in compile_nodelist
nodelist = parser.parse()
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 512, in parse
self.invalid_block_tag(token, command, parse_until)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 573, in invalid_block_tag
raise self.error(
django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 7: 'static'. Did you forget to register or load this tag?
"GET /api/warehouse/ HTTP/1.1" 500 161310
"GET /api/warehouse/ HTTP/1.1" 200 1194
"GET /static/css/styles.css HTTP/1.1" 404 1856
Internal Server Error: /api/warehouse/warehouses/
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/darius/Documents/franchise_store/warehouse/views.py", line 66, in warehouses_list
return render(request, 'warehouse/warehouses.html', {'warehouses': warehouses})
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/shortcuts.py", line 25, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader.py", line 62, in render_to_string
return template.render(context, request)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/backends/django.py", line 107, in render
return self.template.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 171, in render
return self._render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 1008, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 1008, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 969, in render_annotated
return self.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader_tags.py", line 159, in render
return compiled_parent._render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 1008, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 1008, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 969, in render_annotated
return self.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader_tags.py", line 65, in render
result = block.nodelist.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 1008, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 1008, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 969, in render_annotated
return self.render(context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/defaulttags.py", line 480, in render
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/urls/base.py", line 88, in reverse
return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/urls/resolvers.py", line 831, in _reverse_with_prefix
raise NoReverseMatch(msg)
django.urls.exceptions.NoReverseMatch: Reverse for 'add_warehouse' not found. 'add_warehouse' is not a valid view function or pattern name.
"GET /api/warehouse/warehouses/ HTTP/1.1" 500 153275
/Users/darius/Documents/franchise_store/warehouse/urls.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/urls.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/warehouse/views.py changed, reloading.
Watching for file changes with StatReloader
"GET /api/warehouse/warehouses/ HTTP/1.1" 200 1056
"GET /static/css/styles.css HTTP/1.1" 404 1856
"GET /static/css/styles.css HTTP/1.1" 404 1856
"GET /api/warehouse/ HTTP/1.1" 200 1194
"GET /static/css/styles.css HTTP/1.1" 404 1856
"GET /api/warehouse/warehouses/ HTTP/1.1" 200 1056
"GET /static/css/styles.css HTTP/1.1" 404 1856
"GET /api/warehouse/operations/ HTTP/1.1" 200 1694
"GET /static/css/styles.css HTTP/1.1" 404 1856
Method Not Allowed: /api/warehouse/scan-barcode/
"GET /api/warehouse/scan-barcode/ HTTP/1.1" 405 141
/Users/darius/Documents/franchise_store/warehouse/urls.py changed, reloading.
Watching for file changes with StatReloader
"GET /api/warehouse/operations/ HTTP/1.1" 200 1694
"GET /static/css/styles.css HTTP/1.1" 404 1856
Method Not Allowed: /api/warehouse/scan-barcode/
"GET /api/warehouse/scan-barcode/ HTTP/1.1" 405 141
Method Not Allowed: /api/warehouse/scan-barcode/
"GET /api/warehouse/scan-barcode/ HTTP/1.1" 405 141
"GET /api/warehouse/scan-barcode HTTP/1.1" 301 0
Method Not Allowed: /api/warehouse/scan-barcode/
"GET /api/warehouse/scan-barcode/ HTTP/1.1" 405 141
"GET /api/warehouse/scan-barcode-camera HTTP/1.1" 301 0
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 4511
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 1419
"GET /static/css/styles.css HTTP/1.1" 404 1856
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 1419
"GET /static/css/styles.css HTTP/1.1" 404 1856
"GET /static/css/styles.css HTTP/1.1" 404 1856
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 1419
"GET /static/css/styles.css HTTP/1.1" 404 1856
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 1419
"GET /static/css/styles.css HTTP/1.1" 404 1856
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 1419
"GET /static/css/styles.css HTTP/1.1" 404 1856
"GET /static/css/styles.css HTTP/1.1" 404 1856
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 1419
"GET /static/css/styles.css HTTP/1.1" 404 1856
Internal Server Error: /api/warehouse/scan-barcode-camera/
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 510, in parse
compile_func = self.tags[command]
KeyError: 'static'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/darius/Documents/franchise_store/warehouse/views.py", line 10, in scan_barcode_camera
return render(request, 'scan_barcode.html')
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/shortcuts.py", line 25, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader.py", line 15, in get_template
return engine.get_template(template_name)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/backends/django.py", line 79, in get_template
return Template(self.engine.get_template(template_name), self)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/engine.py", line 177, in get_template
template, origin = self.find_template(template_name)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/engine.py", line 159, in find_template
template = loader.get_template(name, skip=skip)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loaders/cached.py", line 57, in get_template
template = super().get_template(template_name, skip)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loaders/base.py", line 28, in get_template
return Template(
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 154, in __init__
self.nodelist = self.compile_nodelist()
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 196, in compile_nodelist
nodelist = parser.parse()
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 518, in parse
raise self.error(token, e)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 516, in parse
compiled_result = compile_func(self, token)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader_tags.py", line 295, in do_extends
nodelist = parser.parse()
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 518, in parse
raise self.error(token, e)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 516, in parse
compiled_result = compile_func(self, token)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader_tags.py", line 234, in do_block
nodelist = parser.parse(("endblock",))
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 512, in parse
self.invalid_block_tag(token, command, parse_until)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 563, in invalid_block_tag
raise self.error(
django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 19: 'static', expected 'endblock'. Did you forget to register or load this tag?
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 500 160734
Internal Server Error: /api/warehouse/scan-barcode-camera/
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/darius/Documents/franchise_store/warehouse/views.py", line 10, in scan_barcode_camera
return render(request, 'scan_barcode.html')
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/shortcuts.py", line 25, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loader.py", line 15, in get_template
return engine.get_template(template_name)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/backends/django.py", line 79, in get_template
return Template(self.engine.get_template(template_name), self)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/engine.py", line 177, in get_template
template, origin = self.find_template(template_name)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/engine.py", line 159, in find_template
template = loader.get_template(name, skip=skip)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loaders/cached.py", line 57, in get_template
template = super().get_template(template_name, skip)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/loaders/base.py", line 28, in get_template
return Template(
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 154, in __init__
self.nodelist = self.compile_nodelist()
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 196, in compile_nodelist
nodelist = parser.parse()
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 519, in parse
self.extend_nodelist(nodelist, compiled_result, token)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/template/base.py", line 536, in extend_nodelist
raise self.error(
django.template.exceptions.TemplateSyntaxError: <ExtendsNode: extends "base.html"> must be the first tag in the template.
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 500 125569
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 1419
"GET /static/css/styles.css HTTP/1.1" 200 393
"GET /static/js/quagga-init.js HTTP/1.1" 404 1865
"GET /static/js/quagga-init.js HTTP/1.1" 404 1865
"GET /static/ HTTP/1.1" 404 1822
"GET /static/js/scan_barcode.js HTTP/1.1" 200 2292
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 1419
"GET /static/css/styles.css HTTP/1.1" 304 0
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 1559
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 1559
"GET /static/js/scan_barcode.js HTTP/1.1" 304 0
"GET /static/css/styles.css HTTP/1.1" 304 0
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 1559
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 1559
"GET /api/warehouse/ HTTP/1.1" 200 1210
"GET /api/warehouse/ HTTP/1.1" 200 1425
"GET /static/css/styles.css HTTP/1.1" 304 0
"GET /api/warehouse/ HTTP/1.1" 200 2541
"GET /api/warehouse/ HTTP/1.1" 200 2541
"GET /api/warehouse/ HTTP/1.1" 200 2541
"GET /api/warehouse/ HTTP/1.1" 200 2541
"GET /static/css/styles.css HTTP/1.1" 304 0
"GET /api/warehouse/ HTTP/1.1" 200 3048
"GET /static/css/styles.css HTTP/1.1" 304 0
"GET /api/warehouse/warehouses/ HTTP/1.1" 200 2674
"GET /api/warehouse/ HTTP/1.1" 200 3048
"GET /api/warehouse/warehouses/ HTTP/1.1" 200 2674
"GET /api/warehouse/operations/ HTTP/1.1" 200 3296
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 2890
"GET /static/js/scan_barcode.js HTTP/1.1" 304 0
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 3277
"GET /static/css/styles.css HTTP/1.1" 304 0
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 3616
"GET /static/js/scan_barcode.js HTTP/1.1" 304 0
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 3677
"GET /static/css/styles.css HTTP/1.1" 304 0
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 3684
"GET /static/js/scan_barcode.js HTTP/1.1" 304 0
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 3643
"GET /static/css/styles.css HTTP/1.1" 304 0
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 3627
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 3627
"GET /static/js/scan_barcode.js HTTP/1.1" 304 0
"GET /static/css/styles.css HTTP/1.1" 304 0
"GET /api/warehouse/operations/ HTTP/1.1" 200 3296
"GET /api/warehouse/ HTTP/1.1" 200 3048
"GET /api/warehouse/warehouses/ HTTP/1.1" 200 2674
"GET /api/warehouse/operations/ HTTP/1.1" 200 3296
"GET /api/warehouse/warehouses/ HTTP/1.1" 200 2674
"GET /api/warehouse/ HTTP/1.1" 200 3048
"GET /api/warehouse/operations/ HTTP/1.1" 200 3296
"GET /api/warehouse/warehouses/ HTTP/1.1" 200 2674
"GET /api/warehouse/warehouses/ HTTP/1.1" 200 2674
"GET /api/warehouse/ HTTP/1.1" 200 3048
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/inventory/views.py changed, reloading.
Watching for file changes with StatReloader
Not Found: /
"GET / HTTP/1.1" 404 2932
"GET /admin/ HTTP/1.1" 200 13650
"GET /static/admin/css/base.css HTTP/1.1" 304 0
"GET /static/admin/css/dashboard.css HTTP/1.1" 304 0
"GET /static/admin/css/dark_mode.css HTTP/1.1" 304 0
"GET /static/admin/js/theme.js HTTP/1.1" 304 0
"GET /static/admin/css/responsive.css HTTP/1.1" 304 0
"GET /static/admin/css/nav_sidebar.css HTTP/1.1" 304 0
"GET /static/admin/js/nav_sidebar.js HTTP/1.1" 304 0
"GET /static/admin/img/icon-changelink.svg HTTP/1.1" 304 0
"GET /static/admin/img/icon-addlink.svg HTTP/1.1" 304 0
Internal Server Error: /admin/inventory/inventory/
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/db/backends/utils.py", line 105, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedColumn: column inventory_inventory.warehouse_id does not exist
LINE 1: ...y_inventory" INNER JOIN "warehouse_warehouse" ON ("inventory...
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/contrib/admin/options.py", line 718, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/utils/decorators.py", line 188, in _view_wrapper
result = _process_exception(request, e)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/utils/decorators.py", line 186, in _view_wrapper
response = view_func(request, *args, **kwargs)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper
response = view_func(request, *args, **kwargs)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/contrib/admin/sites.py", line 241, in inner
return view(request, *args, **kwargs)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/utils/decorators.py", line 48, in _wrapper
return bound_method(*args, **kwargs)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/utils/decorators.py", line 188, in _view_wrapper
result = _process_exception(request, e)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/utils/decorators.py", line 186, in _view_wrapper
response = view_func(request, *args, **kwargs)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/contrib/admin/options.py", line 2140, in changelist_view
"selection_note": _("0 of %(cnt)s selected") % {"cnt": len(cl.result_list)},
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/db/models/query.py", line 382, in __len__
self._fetch_all()
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/db/models/query.py", line 1928, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/db/models/query.py", line 91, in __iter__
results = compiler.execute_sql(
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1574, in execute_sql
cursor.execute(sql, params)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/db/backends/utils.py", line 122, in execute
return super().execute(sql, params)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/db/backends/utils.py", line 79, in execute
return self._execute_with_wrappers(
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/db/backends/utils.py", line 100, in _execute
with self.db.wrap_database_errors:
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/Users/darius/anaconda3/envs/django_env/lib/python3.10/site-packages/django/db/backends/utils.py", line 105, in _execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: column inventory_inventory.warehouse_id does not exist
LINE 1: ...y_inventory" INNER JOIN "warehouse_warehouse" ON ("inventory...
^
"GET /admin/inventory/inventory/ HTTP/1.1" 500 168430
Watching for file changes with StatReloader
"GET /admin/inventory/inventory/ HTTP/1.1" 200 13200
"GET /static/admin/js/core.js HTTP/1.1" 304 0
"GET /static/admin/css/changelists.css HTTP/1.1" 304 0
"GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 304 0
"GET /static/admin/js/actions.js HTTP/1.1" 304 0
"GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 304 0
"GET /static/admin/js/prepopulate.js HTTP/1.1" 304 0
"GET /static/admin/js/jquery.init.js HTTP/1.1" 304 0
"GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 304 0
"GET /static/admin/js/urlify.js HTTP/1.1" 304 0
"GET /static/admin/img/search.svg HTTP/1.1" 304 0
"GET /static/admin/js/filters.js HTTP/1.1" 304 0
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /static/admin/img/tooltag-add.svg HTTP/1.1" 304 0
"GET /static/admin/img/icon-viewlink.svg HTTP/1.1" 304 0
"GET /admin/inventory/inventory/ HTTP/1.1" 200 13200
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/inventory/inventory/add/ HTTP/1.1" 200 17583
"GET /static/admin/css/forms.css HTTP/1.1" 304 0
"GET /static/admin/css/widgets.css HTTP/1.1" 304 0
"GET /static/admin/js/prepopulate_init.js HTTP/1.1" 304 0
"GET /static/admin/js/change_form.js HTTP/1.1" 304 0
"GET /admin/jsi18n/ HTTP/1.1" 200 3342
"GET /admin/inventory/inventory/ HTTP/1.1" 200 13200
"GET /admin/ HTTP/1.1" 200 13650
"GET /api/warehouse/ HTTP/1.1" 200 3048
"GET /static/css/styles.css HTTP/1.1" 304 0
"GET /api/warehouse/warehouses/ HTTP/1.1" 200 2674
"GET /api/warehouse/operations/ HTTP/1.1" 200 3296
"GET /api/warehouse/scan-barcode-camera/ HTTP/1.1" 200 3627
"GET /static/js/scan_barcode.js HTTP/1.1" 304 0
"GET /api/warehouse/ HTTP/1.1" 200 3048
Watching for file changes with StatReloader
Not Found: /
"GET / HTTP/1.1" 404 3084
Not Found: /favicon.ico
"GET /favicon.ico HTTP/1.1" 404 3135
Not Found: /api
"GET /api HTTP/1.1" 404 3111
Not Found: /api/swagger
"GET /api/swagger HTTP/1.1" 404 3135
Not Found: /api/docs
"GET /api/docs HTTP/1.1" 404 3126
Not Found: /warehouse/scan-barcode-camera/
"GET /warehouse/scan-barcode-camera/ HTTP/1.1" 404 3192
"GET /api/warehouse/ HTTP/1.1" 200 3048
"GET /static/css/styles.css HTTP/1.1" 200 393
"GET /admin/ HTTP/1.1" 302 0
"GET /admin/login/?next=/admin/ HTTP/1.1" 200 4165
"GET /static/admin/css/base.css HTTP/1.1" 200 22092
"GET /static/admin/css/nav_sidebar.css HTTP/1.1" 200 2810
"GET /static/admin/css/login.css HTTP/1.1" 200 951
"GET /static/admin/css/dark_mode.css HTTP/1.1" 200 2804
"GET /static/admin/js/theme.js HTTP/1.1" 200 1653
"GET /static/admin/css/responsive.css HTTP/1.1" 200 17972
"GET /static/admin/js/nav_sidebar.js HTTP/1.1" 200 3063
Not Found: /
"GET / HTTP/1.1" 404 3084
Not Found: /api
"GET /api HTTP/1.1" 404 3111
Not Found: /api/docs
"GET /api/docs HTTP/1.1" 404 3126
Not Found: /api/swagger
"GET /api/swagger HTTP/1.1" 404 3135
"GET /api/hr/swagger HTTP/1.1" 301 0
"GET /api/hr/swagger/ HTTP/1.1" 200 2229
"GET /static/drf-yasg/style.css HTTP/1.1" 200 1047
"GET /static/drf-yasg/insQ.min.js HTTP/1.1" 200 2093
"GET /static/drf-yasg/immutable.min.js HTTP/1.1" 200 56904
"GET /static/drf-yasg/swagger-ui-init.js HTTP/1.1" 200 15480
"GET /static/drf-yasg/swagger-ui-dist/swagger-ui.css HTTP/1.1" 200 145206
"GET /static/drf-yasg/swagger-ui-dist/swagger-ui-standalone-preset.js HTTP/1.1" 200 322863
"GET /static/drf-yasg/swagger-ui-dist/swagger-ui-bundle.js HTTP/1.1" 200 1046583
"GET /api/hr/swagger/?format=openapi HTTP/1.1" 200 54931
"GET /static/drf-yasg/swagger-ui-dist/favicon-32x32.png HTTP/1.1" 200 628
"POST /admin/login/?next=/admin/ HTTP/1.1" 302 0
"GET /admin/ HTTP/1.1" 200 10909
"GET /static/admin/css/dashboard.css HTTP/1.1" 200 441
"GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331
"GET /static/admin/img/icon-changelink.svg HTTP/1.1" 200 380
"GET /api/hr/swagger/ HTTP/1.1" 200 2458
"GET /api/hr/swagger/?format=openapi HTTP/1.1" 200 54931
/Users/darius/Documents/franchise_store/logistic/urls.py changed, reloading.
Watching for file changes with StatReloader
"GET /api/hr/swagger/ HTTP/1.1" 200 2458
"GET /api/hr/swagger/?format=openapi HTTP/1.1" 200 54931
/Users/darius/Documents/franchise_store/logistic/views.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/logistic/urls.py changed, reloading.
Watching for file changes with StatReloader
"GET /api/hr/swagger/ HTTP/1.1" 200 2458
"GET /api/hr/swagger/?format=openapi HTTP/1.1" 200 54931
/Users/darius/Documents/franchise_store/logistic/urls.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/logistic/urls.py changed, reloading.
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/logistic/urls.py changed, reloading.
Watching for file changes with StatReloader
"GET /api/hr/swagger/ HTTP/1.1" 200 2458
"GET /api/hr/swagger/?format=openapi HTTP/1.1" 200 54931