dj-stripe / dj-stripe

dj-stripe automatically syncs your Stripe Data to your local database as pre-implemented Django Models allowing you to use the Django ORM, in your code, to work with the data making it easier and faster.

Home Page:https://dj-stripe.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`CommandError: Unknown model: djstripe.cd`

baselakasha opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.

When I execute django migration and try to run python .manage.py djstripe_sync_models, I get an error that says CommandError: Unknown model: djstripe.cd

To Reproduce

  • Execute the command djstripe_sync_models on a new database

Software versions

  • Dj-Stripe version: 2.8.1
  • Python version: 3.11.3
  • Django version: 4.0.4
  • Stripe API version: Not sure, I have stripe==4.2.0 python package
  • Database type and version: SQLITE.

Not sure what caused this. But I deleted my database and tried again and it worked.