@ -732,177 +732,224 @@ django.template.exceptions.TemplateSyntaxError: <ExtendsNode: extends "base.html
"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/
/home/dark/Documents/GitHub/store-management-system/urls.py changed, reloading.
Watching for file changes with StatReloader
Watching for file changes with StatReloader
/home/dark/Documents/GitHub/store-management-system/settings/base.py changed, reloading.
Watching for file changes with StatReloader
Watching for file changes with StatReloader
Not Found: /
"GET / HTTP/1.1" 404 3082
Not Found: /api/hq/
"GET /api/hq/ HTTP/1.1" 404 4133
Method Not Allowed: /api/hq/api/products/upload/
"GET /api/hq/api/products/upload/ HTTP/1.1" 405 10569
"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/css/default.css HTTP/1.1" 304 0
"GET /static/rest_framework/css/prettify.css HTTP/1.1" 304 0
"GET /static/rest_framework/js/csrf.js HTTP/1.1" 304 0
"GET /static/rest_framework/js/prettify-min.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/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/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" 200 1458
Not Found: /api/products/upload
"POST /api/products/upload HTTP/1.1" 404 3158
Not Found: /api/products/upload
"POST /api/products/upload HTTP/1.1" 404 3158
Not Found: /api/products/upload
"POST /api/products/upload HTTP/1.1" 404 3158
Not Found: /api/products/upload
"POST /api/products/upload HTTP/1.1" 404 3158
"GET /api/hr/swagger/?format=openapi HTTP/1.1" 200 55769
Not Found: /
"GET / HTTP/1.1" 404 3082
Not Found: /api/hq/
"GET /api/hq/ HTTP/1.1" 404 4133
Not Found: /api/hq/ api/products/upload/
"GET /api/hq/%20api/products/upload/ HTTP/1.1" 404 4198
Method Not Allowed: /api/hq/api/products/upload/
"GET /api/hq/api/products/upload/ HTTP/1.1" 405 10569
Internal Server Error: /api/hq/api/products/upload/
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
File "/home/dark/miniconda3/envs/django /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...
^
psycopg2.errors.UndefinedTable: relation "hq_product" does not exist
LINE 1: INSERT INTO "hq_product" ("name", "manufacturer", "manufactu ...
^
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
File "/home/dark/miniconda3/envs/django /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
File "/home/dark/miniconda3/envs/django /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
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 65, in _view_wrapper
return view_func(request, *args, **kwargs)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/home/dark/Documents/GitHub/store-management-system/hq/views.py", line 11, in post
serializer.save()
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/serializers.py", line 758, in save
self.instance = self.create(validated_data)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/serializers.py", line 730, in create
return [
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/serializers.py", line 731, in <listcomp>
self.child.create(attrs) for attrs in validated_data
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/serializers.py", line 989, in create
instance = ModelClass._default_manager.create(**validated_data)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/query.py", line 679, in create
obj.save(force_insert=True, using=self.db)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/base.py", line 892, in save
self.save_base(
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/base.py", line 998, in save_base
updated = self._save_table(
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/base.py", line 1161, in _save_table
results = self._do_insert(
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/base.py", line 1202, in _do_insert
return manager._insert(
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/query.py", line 1847, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1836, 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
File "/home/dark/miniconda3/envs/django /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
File "/home/dark/miniconda3/envs/django /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
File "/home/dark/miniconda3/envs/django /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
File "/home/dark/miniconda3/envs/django /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__
File "/home/dark/miniconda3/envs/django /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
File "/home/dark/miniconda3/envs/django /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 ...
^
django.db.utils.ProgrammingError: relation "hq_product" does not exist
LINE 1: INSERT INTO "hq_product" ("name", "manufacturer", "manufactu ...
^
"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.
"POST /api/hq/api/products/upload/ HTTP/1.1" 500 215430
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.
Internal Server Error: /api/hq/api/products/upload/
Traceback (most recent call last):
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/backends/utils.py", line 105, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "hq_product" does not exist
LINE 1: INSERT INTO "hq_product" ("name", "manufacturer", "manufactu...
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/views/decorators/csrf.py", line 65, in _view_wrapper
return view_func(request, *args, **kwargs)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/home/dark/Documents/GitHub/store-management-system/hq/views.py", line 11, in post
serializer.save()
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/serializers.py", line 758, in save
self.instance = self.create(validated_data)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/serializers.py", line 730, in create
return [
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/serializers.py", line 731, in <listcomp>
self.child.create(attrs) for attrs in validated_data
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/rest_framework/serializers.py", line 989, in create
instance = ModelClass._default_manager.create(**validated_data)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/query.py", line 679, in create
obj.save(force_insert=True, using=self.db)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/base.py", line 892, in save
self.save_base(
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/base.py", line 998, in save_base
updated = self._save_table(
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/base.py", line 1161, in _save_table
results = self._do_insert(
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/base.py", line 1202, in _do_insert
return manager._insert(
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/query.py", line 1847, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1836, in execute_sql
cursor.execute(sql, params)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/backends/utils.py", line 122, in execute
return super().execute(sql, params)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/backends/utils.py", line 79, in execute
return self._execute_with_wrappers(
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/backends/utils.py", line 100, in _execute
with self.db.wrap_database_errors:
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/db/backends/utils.py", line 105, in _execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "hq_product" does not exist
LINE 1: INSERT INTO "hq_product" ("name", "manufacturer", "manufactu...
^
"POST /api/hq/api/products/upload/ HTTP/1.1" 500 215430
Watching for file changes with StatReloader
/Users/darius/Documents/franchise_store/logistic/urls.py changed, reloading.
"POST /api/hq/api/products/upload/ HTTP/1.1" 201 44
Internal Server Error: /api/hq/api/contractors/upload
Traceback (most recent call last):
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/utils/deprecation.py", line 131, in __call__
response = self.process_response(request, response)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/middleware/common.py", line 108, in process_response
return self.response_redirect_class(self.get_full_path_with_slash(request))
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/middleware/common.py", line 87, in get_full_path_with_slash
raise RuntimeError(
RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/api/hq/api/contractors/upload/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
"POST /api/hq/api/contractors/upload HTTP/1.1" 500 78748
Internal Server Error: /api/hq/api/employees/upload
Traceback (most recent call last):
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/utils/deprecation.py", line 131, in __call__
response = self.process_response(request, response)
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/middleware/common.py", line 108, in process_response
return self.response_redirect_class(self.get_full_path_with_slash(request))
File "/home/dark/miniconda3/envs/django/lib/python3.10/site-packages/django/middleware/common.py", line 87, in get_full_path_with_slash
raise RuntimeError(
RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/api/hq/api/employees/upload/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
"POST /api/hq/api/employees/upload HTTP/1.1" 500 78716
"POST /api/hq/api/employees/upload/ HTTP/1.1" 201 45
"POST /api/hq/api/contractors/upload/ HTTP/1.1" 201 47
"POST /api/hq/api/contractor-contacts/upload/ HTTP/1.1" 201 55
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
"GET /api/hr/ HTTP/1.1" 200 10827