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

**URL:** <https://forum.djangoproject.com/t/how-to-solve-this-error-after-running-python-manage-py-migrate/18283>\
**Category:** Getting Started\
**Created:** [January 19, 2023, 8:39am UTC](https://forum.djangoproject.com/t/how-to-solve-this-error-after-running-python-manage-py-migrate/18283 "2023-01-19T08:39:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gairick52](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/gairick52/32/11812_2.png) [@Gairick52](https://forum.djangoproject.com/u/Gairick52)\
**Post date:** [January 19, 2023, 8:39am UTC](https://forum.djangoproject.com/t/how-to-solve-this-error-after-running-python-manage-py-migrate/18283/1 "2023-01-19T08:39:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![leandrodesouzadev](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/leandrodesouzadev/32/8981_2.png) [@leandrodesouzadev](https://forum.djangoproject.com/u/leandrodesouzadev)\
**Post date:** [January 19, 2023, 10:20am UTC](https://forum.djangoproject.com/t/how-to-solve-this-error-after-running-python-manage-py-migrate/18283/2 "2023-01-19T10:20:45Z")

</div>

What’s your `DATABASES` setting is like?

---

<div class="post-metadata">

**Author:** ![Gairick52](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/gairick52/32/11812_2.png) [@Gairick52](https://forum.djangoproject.com/u/Gairick52)\
**Post date:** [January 19, 2023, 10:53am UTC](https://forum.djangoproject.com/t/how-to-solve-this-error-after-running-python-manage-py-migrate/18283/3 "2023-01-19T10:53:33Z")

</div>

> [@Gairick52](#):
>
> TypeError: argument of type ‘WindowsPath’ is not iterable

issue resolved thanks by the way

---

<div class="post-metadata">

**Author:** ![qvisty](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/qvisty/32/4818_2.png) [@qvisty](https://forum.djangoproject.com/u/qvisty)\
**Post date:** [January 20, 2023, 5:33pm UTC](https://forum.djangoproject.com/t/how-to-solve-this-error-after-running-python-manage-py-migrate/18283/4 "2023-01-20T17:33:59Z")

</div>

> [@Gairick52](#):
>
> issue resolved thanks by the way

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

---

<div class="post-metadata">

**Author:** ![Madhvika111](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/madhvika111/32/13538_2.png) [@Madhvika111](https://forum.djangoproject.com/u/Madhvika111)\
**Post date:** [May 2, 2023, 11:19am UTC](https://forum.djangoproject.com/t/how-to-solve-this-error-after-running-python-manage-py-migrate/18283/5 "2023-05-02T11:19:16Z")

</div>

I got this same error , Can you please share the workaround

---

<div class="post-metadata">

**Author:** ![waheeb](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/waheeb/32/16187_2.png) [@waheeb](https://forum.djangoproject.com/u/waheeb)\
**Post date:** [September 28, 2023, 4:05pm UTC](https://forum.djangoproject.com/t/how-to-solve-this-error-after-running-python-manage-py-migrate/18283/6 "2023-09-28T16:05:39Z")

</div>

I had similar issue

(crud) PS C:\dframework\myproject\> py manage.py makemigrations webapp  
Traceback (most recent call last):  
File “C:\dframework\myproject\manage.py”, line 22, in   
main()  
File “C:\dframework\myproject\manage.py”, line 18, in main  
execute\_from\_command\_line(sys.argv)  
File “C:\dframework\crud\Lib\site-packages\django\core\management\__init_\_.py”, line 442, in execute\_from\_command\_line  
utility.execute()  
File “C:\dframework\crud\Lib\site-packages\django\core\management\__init_\_.py”, line 416, in execute  
django.setup()  
File “C:\dframework\crud\Lib\site-packages\django\__init_\_.py”, line 24, in setup  
apps.populate(settings.INSTALLED\_APPS)  
File “C:\dframework\crud\Lib\site-packages\django\apps\config.py”, line 193, in create  
import\_module(entry)  
File “C:\Users\Owner\AppData\Local\Programs\Python\Python311\Lib\importlib\__init_\_.py”, line 126, in import\_module  
return \_bootstrap.\_gcd\_import(name[level:], package, level)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “”, line 1204, in \_gcd\_import  
File “”, line 1176, in \_find\_and\_load  
File “”, line 1140, in \_find\_and\_load\_unlocked  
ModuleNotFoundError: No module named ‘rest\_frameworkwebapp’

---

<div class="post-metadata">

**Author:** ![waheeb](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/waheeb/32/16187_2.png) [@waheeb](https://forum.djangoproject.com/u/waheeb)\
**Post date:** [September 28, 2023, 4:07pm UTC](https://forum.djangoproject.com/t/how-to-solve-this-error-after-running-python-manage-py-migrate/18283/7 "2023-09-28T16:07:21Z")

</div>

> [@waheeb](#):
>
> ModuleNotFoundError: No module named ‘rest\_frameworkwebapp’

After I do my models I get this error when I try to makemigrations

---

<div class="post-metadata">

**Author:** ![waheeb](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/waheeb/32/16187_2.png) [@waheeb](https://forum.djangoproject.com/u/waheeb)\
**Post date:** [September 28, 2023, 4:31pm UTC](https://forum.djangoproject.com/t/how-to-solve-this-error-after-running-python-manage-py-migrate/18283/8 "2023-09-28T16:31:28Z")

</div>

Ok Guys, resolved thank you, for the purpose of learning I forgot to put a comma in the INSTALLED\_APPS after my application name
