how to solve this error after running python manage.py migrate

Traceback (most recent call last):
File “C:\Users\Gairick\Desktop\gitrepo\django\venv\Scripts\django1\manage.py”, line 22, in
main()
File “C:\Users\Gairick\Desktop\gitrepo\django\venv\Scripts\django1\manage.py”, line 18, in main
execute_from_command_line(sys.argv)
File “C:\Users\Gairick\AppData\Roaming\Python\Python311\site-packages\django\core\management_init_.py”,
line 401, in execute_from_command_line
utility.execute()
File “C:\Users\Gairick\AppData\Roaming\Python\Python311\site-packages\django\core\management_init_.py”,
line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “C:\Users\Gairick\AppData\Roaming\Python\Python311\site-packages\django\core\management\base.py”, lin
e 341, in run_from_argv
connections.close_all()
File “C:\Users\Gairick\AppData\Roaming\Python\Python311\site-packages\django\db\utils.py”, line 230, in cl
ose_all
connection.close()
File “C:\Users\Gairick\AppData\Roaming\Python\Python311\site-packages\django\utils\asyncio.py”, line 26, i
n inner
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Gairick\AppData\Roaming\Python\Python311\site-packages\django\db\backends\sqlite3\base.py”,
line 261, in close
if not self.is_in_memory_db():
^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Gairick\AppData\Roaming\Python\Python311\site-packages\django\db\backends\sqlite3\base.py”,
line 380, in is_in_memory_db
return self.creation.is_in_memory_db(self.settings_dict[‘NAME’])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Gairick\AppData\Roaming\Python\Python311\site-packages\django\db\backends\sqlite3\creation.
py”, line 12, in is_in_memory_db
return database_name == ‘:memory:’ or ‘mode=memory’ in database_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type ‘WindowsPath’ is not iterable

What’s your DATABASES setting is like?

issue resolved thanks by the way

Could you explain what you did to make it work? For learning purposes

1 Like