(env) mubashir@mubi-mac-air Ecommerce-Django % python manage.py makemigrations
/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/models/fields/__init__.py:1416: RuntimeWarning: DateTimeField Products.created_date received a naive datetime (2021-12-24 21:23:34.921370) while time zone support is active.
warnings.warn("DateTimeField %s received a naive datetime (%s)"
Traceback (most recent call last):
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py", line 423, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: no such table: apis_newcollection
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/mubashir/DEV/VIOUI/Ecommerce-Django/manage.py", line 22, in <module>
main()
File "/Users/mubashir/DEV/VIOUI/Ecommerce-Django/manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
utility.execute()
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/core/management/base.py", line 393, in execute
self.check()
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/core/management/base.py", line 419, in check
all_issues = checks.run_checks(
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/core/checks/registry.py", line 76, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/urls/resolvers.py", line 412, in check
for pattern in self.url_patterns:
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/utils/functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/urls/resolvers.py", line 598, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/utils/functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/urls/resolvers.py", line 591, in urlconf_module
return import_module(self.urlconf_name)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Users/mubashir/DEV/VIOUI/Ecommerce-Django/core/urls.py", line 8, in <module>
path('api/', include('apis.urls')),
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/urls/conf.py", line 34, in include
urlconf_module = import_module(urlconf_module)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Users/mubashir/DEV/VIOUI/Ecommerce-Django/apis/urls.py", line 12, in <module>
from .views import *
File "/Users/mubashir/DEV/VIOUI/Ecommerce-Django/apis/views.py", line 71, in <module>
class NewCollectionViewset(viewsets.ModelViewSet):
File "/Users/mubashir/DEV/VIOUI/Ecommerce-Django/apis/views.py", line 74, in NewCollectionViewset
if NewCollection.objects.filter().exists():
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/models/query.py", line 808, in exists
return self.query.has_results(using=self.db)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/models/sql/query.py", line 552, in has_results
return compiler.has_results()
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1145, in has_results
return bool(self.execute_sql(SINGLE))
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
cursor.execute(sql, params)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
return super().execute(sql, params)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/Users/mubashir/DEV/VIOUI/env/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py", line 423, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table: apis_newcollection```