eleow / roboadvisorSystem

Robo-advisor
MIT License
38 stars 12 forks source link

Missing tables in db.sqlite3 in Django in Debug Mode #11

Closed eleow closed 4 years ago

eleow commented 4 years ago

Even though there are no outstanding migrations, django fails in debug mode

eleow commented 4 years ago

This was due to wrong working directory. In debug mode, manage.py was being executed in root directory, and it created/used db.sqlite3 file from there instead of the one in frontEnd folder (ie SystemCode\frontend\smartportfolioWeb\src)

Solved by first changing directory to the frontEnd folder and then executing manage.py See launch.json