Forums

newbe needs help with loaddata

I added some entries local in my production sqlite and tried to add it in my database on pythonanywhere. I managed to load hilfe.json for example. The code: " $ python manage.py loaddata hilfe.json" brings the error: "python: can't open file '/home/rechentrainer/manage.py': [Errno 2] No such file or directory" The json file is real small and I can see it in the same directory as db.sqlite3

It sounds to me like you're running that command in the wrong directory. You need to use the cd command to change your working directory to the one containing manage.py before running it.

Thank you, that's it. It still does not work, but that seems to be another problem ...

Thanks for confirming that. If the issue is somehow related to PythonAnywhere, let us know, and we'll try to help.

Thanks a lot!