Skip to content Skip to sidebar Skip to footer

OSError: [WinError 123] The Filename, Directory Name, Or Volume Label Syntax Is Incorrect: '' (Django)

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

Solution 1:

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.


Solution 2:

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


Solution 3:

if you have virtualenv managing your packages make sure that is activated it before you run your app.


Solution 4:

I am sensing that you are trying to import bootstrap files for your website.This can be conveniently done by adding the hyperlink from the bootstrap cdn on your base template. Also you can download the boostrap package and copy the css and js files under the static folder in your project.


Solution 5:

first but not always, it seems you have deleted a file/folder from your project. if so, remember to delete the path that was serving that folder "path in the project urls.py"


Post a Comment for "OSError: [WinError 123] The Filename, Directory Name, Or Volume Label Syntax Is Incorrect: '' (Django)"