Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '<frozen importlib._bootstrap>' (Django) [closed]

Tags:

python

django

enter image description here

I am new to Django so I have less information about this error.

like image 866
sanif Avatar asked May 16 '19 10:05

sanif


2 Answers

I had the same issue here. After having suffering for a few hours stuck, I figured out the reason. It's very basic. We forgot to run the migrate commands. To fix, run the below commands in order:

python manage.py migrate

python manage.py makemigrations

python manage.py migrate

While the error notification is not relavance but this fix the error anyway :v.

You can read further information about migration Here.

like image 56
Phạm Hoàng Avatar answered Oct 09 '22 02:10

Phạm Hoàng


The same issue is also occurred when someone misspell filename, directory name or app name... for example when someone create an app by the name of users and then he/she want to enlist the app in the INSTALLED_APPS List available in the setting.py file in misspell way like ............ users.app.UsersConfig instead of users.apps.UsersConfig

like image 27
Ziar Khan Avatar answered Oct 09 '22 04:10

Ziar Khan