'Unable to import djstripe.models to views.py
All the migrations have been successful and all the models and tables have been imported successfully by running below command:
python3 manage.py djstripe_sync_plans_from_stripe

but I can't import djstripe.models in my views.py module, what should I do?
Solution 1:[1]
If you're using dj-strip 2.4 or later djstripe_sync_plans_from_stripe command base on dj-strip 2.4 release note is a deprecated command and for migrate tables that's enough to run below commands:
$ python manage.py migrate
$ python manage.py djstripe_sync_models
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Javad Nikbakht |
