I have a Postgresql databese with data. I want to create a django app with that database.
How can i import the tables to django models and/or views?
There is a utility called manage.py inspectdb
to generate models from your existing database. It works pretty well.
$ python manage.py inspectdb > models.py
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With