-
👋 Hi!
Triggered by this line:
I'm using the settings suggested by the documentation: STRIPE_TEST_SECRET_KEY = os.environ.get("STRIPE_TEST_SECRET_KEY", "<your secret key>")
STRIPE_TEST_PUBLIC_KEY = os.environ.get("STRIPE_TEST_PUBLIC_KEY", "<your secret key>")
STRIPE_LIVE_MODE = False
DJSTRIPE_WEBHOOK_SECRET = "whsec_xxx"
DJSTRIPE_USE_NATIVE_JSONFIELD = True
DJSTRIPE_FOREIGN_KEY_TO_FIELD = "id" I've noticed that executing this Django management command:
It immediately reports this "error" Skipping <class 'djstripe.models.base.IdempotencyKey'>: not a StripeModel
Skipping <class 'djstripe.models.api.APIKey'>: no stripe_class They look related, but I don't know if I'm missing something in Django or Stripe. Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I’m guessing you’re using the latest release candidate. API keys have to now be added through the db admin instead of in settings. Just go to /admin (or wherever you’re admin url is), go to api keys, add api key, and paste it into the secret field. It will automatically detect if it’s a public or private key. |
Beta Was this translation helpful? Give feedback.
I’m guessing you’re using the latest release candidate. API keys have to now be added through the db admin instead of in settings. Just go to /admin (or wherever you’re admin url is), go to api keys, add api key, and paste it into the secret field. It will automatically detect if it’s a public or private key.