sqlite3.OperationalError
The "python manage.py syncdb" command is giving me the following error:
sqlite3.OperationalError: unable to open database file
I'm following the step by step instructions in Practical Django Projects, so I think this has to do something with the Windows Operating system acting quirky!
Things I've checkde:
1.The path is updated in settings.py is absolutely correcto!
2. Path is : C:\Documents and Settings\fixavier\Desktop\Django\Database\cms\cms.txt
So the entire folder - Database, has sharing and security permissions.
I'm pretty much at the bottom of the ocean for not being able to follow and successfully execute simple instructions, so could you please help me out her开发者_如何学运维e!
You haven't shown exactly how the path is represented in your settings.py file. But if you've done it how you show here, it won't work. You need to use forward slashes (/
) or double backwards slashes (\\
).
This is because in Python a backslash usually means to escape the following character.
精彩评论