title: TypeError: argument of type 'WindowsPath' is not iterable - in django python
body: <p>whenever I run the server or executing any commands in the terminal this error is showing in the terminal. The server is running and the webpage is working fine but when I quit the server or run any commands(like python manage.py migrate) this error is showing.</p>
  <pre><code>   `Watching for file changes with StatReloader
      Performing system checks...
      
      System check identified no issues (0 silenced).
      September 21, 2020 - 12:42:24
      Django version 3.0, using settings 'djangoblog.settings'
      Starting development server at http://127.0.0.1:8000/
      Quit the server with CTRL-BREAK.
  
  Traceback (most recent call last):
    File &quot;manage.py&quot;, line 22, in &lt;module&gt;
      main()
    File &quot;manage.py&quot;, line 18, in main
      execute_from_command_line(sys.argv)
    File &quot;C:\Python37\lib\site-packages\django\core\management\__init__.py&quot;, line 401, in execute_from_command_line
      utility.execute()
    File &quot;C:\Python37\lib\site-packages\django\core\management\__init__.py&quot;, line 395, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File &quot;C:\Python37\lib\site-packages\django\core\management\base.py&quot;, line 341, in run_from_argv
      connections.close_all()
    File &quot;C:\Python37\lib\site-packages\django\db\utils.py&quot;, line 230, in close_all
      connection.close()
    File &quot;C:\Python37\lib\site-packages\django\utils\asyncio.py&quot;, line 24, in inner
      return func(*args, **kwargs)
    File &quot;C:\Python37\lib\site-packages\django\db\backends\sqlite3\base.py&quot;, line 261, in close
      if not self.is_in_memory_db():
    File &quot;C:\Python37\lib\site-packages\django\db\backends\sqlite3\base.py&quot;, line 380, in is_in_memory_db
      return self.creation.is_in_memory_db(self.settings_dict['NAME'])
    File &quot;C:\Python37\lib\site-packages\django\db\backends\sqlite3\creation.py&quot;, 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
  `
  </code></pre>