[Fixed]-Django with PythonAnywhere — Operational Error no such table

1👍

As you can see from that screenshot, the path on Pythonanywhere is /home/dahlia/scifair, not /users/Dahlia/learning_python/scifair.

You shouldn’t hard-code the path at all. Instead, use the BASE_DIR variable to calculate it:

'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),

Leave a comment