Forums

PythonAnywhere Facebook app example unable to open database file

I followed the PythonAnywhere Facebook app example to learn building this app. After I issue the command "python manage.py syncdb" in console. It gave error message "sqlite3.OperationalError: unable to open database file". It did not create sqlite db as the example shown. Anything I have done wrong?

Would you mind if I took a look at your files? That might be the easiest way to debug this.

Giles,

Sure! How can I share the code with you? Or, you can directly look at my files in mysite?

-Leo

Hi Leo -- now that you've said I can look, I can do it directly. I'll do so now and get back to you ASAP.

OK, it looks like you missed a step -- in your settings.py file, where you specify the database file, there's an occurrence of yourusername, which (of course) needs to be replaced with gofoxier.

Giles, Thank you for your help! Is it OK now.

Excellent, thanks for confirming that!