1

I'm wondering how to import an existing sqlite3 database and all it's entries into a new Django project. Lets say for example my existing database is called mydatab.db containing a table called 'cars' which has the columns 'name', 'year' and 'owner'. All the columns are text. All examples I have found are for creating new databases and manually entering data.

Thanks

user1887639
  • 79
  • 2
  • 9
  • 2
    You should learn about `./manage.py inspectdb` command. See [reverse engineer mysql database to create django app](http://stackoverflow.com/questions/1545714/reverse-engineer-mysql-database-to-create-django-app) – dani herrera Dec 16 '12 at 14:23
  • Duplicated. There is a good answer at this link: http://stackoverflow.com/questions/1545714/reverse-engineer-mysql-database-to-create-django-app – Paulo Cheque Jul 28 '14 at 13:30
  • Does this answer your question? [reverse engineer mysql database to create django app](https://stackoverflow.com/questions/1545714/reverse-engineer-mysql-database-to-create-django-app) – Lewis Dec 08 '21 at 19:34

0 Answers0