I'm trying to perform the Django inspectdb command using my snowflake connection, but I get the following error:
> python manage.py inspectdb --database snowflake table_name
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
from django.db import models
# Unable to inspect table 'table_name'
# The error was: too many values to unpack (expected 11)
I'm using:
python=3.11.6
django=4.2.7
django-snowflake=4.2
The database connection in settings.py is configured like this:
Hi,
I'm trying to perform the Django
inspectdb
command using my snowflake connection, but I get the following error:I'm using:
The database connection in settings.py is configured like this:
I am able to access the data using the Django Shell, so I know the the connection is working.
Am I missing something here? Thanks in advance.