I would suggest the managed option in the Meta class of the model. Setting
this to false will stop Django from trying to create the table, and it will
instead expect it to already be available. Also, the db_table option can
be used if the name of your model is different than the existing table
Hello,
I've been looking online how to build a model in models.py of an existing
outside database. We developed and application in python, and I need to
import its data from an oracle database. However I tried this before by
establishing the fields in models.py to what the database says and run
2 matches
Mail list logo