I'm getting the following error while running manage.py migrate in my Django rest-api. I'm unable to pinpoint where to look. Help appreciated.
attributeerror: 'str' object has no attribute '_meta'
The traceback shows the following :
'' Traceback (most recent call last): File "/home/myproject/myproject-api/manage.py", line 25, in execute_from_command_line(sys.argv)
File "/home/myEnv/lib/python3.9/site-packages/django/core/management/init.py", line 419, in execute_from_command_line utility.execute()
File "/home/myEnv/lib/python3.9/site-packages/django/core/management/init.py", line 395, in execute django.setup()
File "/home/myEnv/lib/python3.9/site-packages/django/init.py", line 24, in setup apps.populate(settings.INSTALLED_APPS)
File "/home/myEnv/lib/python3.9/site-packages/django/apps/registry.py", line 122, in populate app_config.ready()
File "/home/myEnv/lib/python3.9/site-packages/cacheops/init.py", line 18, in ready install_cacheops()
File "/home/myEnv/lib/python3.9/site-packages/funcy/flow.py", line 231, in wrapper return func(*args, **kwargs)
File "/home/myEnv/lib/python3.9/site-packages/cacheops/query.py", line 578, in install_cacheops opts = rel.through._meta AttributeError: 'str' object has no attribute '_meta'
''