I'm trying to create a model for terms table in models.py file using inspectdb command in Django project. The terms table contains information about students and their GPA for three grades. I'm using Oracle 18 database and Django 3.2.
When I try to execute this command:
python3 manage.py inspectdb terms > models.py
I get this message:
Unable to inspect table 'terms'
The error was: 'STU_ID'
I don't know what is the error with STU_ID column, it exists in the database and has a valid data type and constraints.
I tried to use --exclude option to exclude the column from inspection, but it didn't work. I got this message:
manage.py inspectdb: error: unrecognized arguments: --exclude
I also tried to use --table-filter option to inspect only terms table, but it also didn't work. I got the same message:
manage.py inspectdb: error: unrecognized arguments: --table-filter
I don't understand why these options are not available in Django 3.2, they are mentioned in the official documentation.
Is there a solution for this problem? How can I create a model for terms table in models.py file?
Thank you.