7
The one and only reason for this error is you might have either a stripe.py
file or a module in your project directory.
and, yes, you have a package named stripe
under django braintree
directory.
\django braintree\stripe\sales\views.py
How can we verify that?
You can check the location of the module by inspecting the .__file__
attribute of the module.
import stripe
print(stripe.__file__)
^^^^^^^^^^^
References
0
You have named your project/app as stripe which makes conflict with the stripe package you installed
Change you project/app name to a different name and try again
NOTE: avoid using package name as app name or project name, this will create issues during referencing
- [Django]-Initial form data from model – Django
- [Django]-Django-Userena: adding extra non-null fields to a user's profile
- [Django]-Heroku Django app not loading static files (404 Not Found)
- [Django]-Django: "Forbidden (403) CSRF verification failed. Request aborted." in Docker Production
Source:stackexchange.com