#Andrés-python
1 messages · Page 1 of 1 (latest)
How are you importing the stripe module in your code? Is it exactly what is in server.py from that tutorial?
Can you share the line of code that's erroring for you?
Yes, im importing the same way, this is my basic code for now.
just FYI you should obscure/remove your secret (test) key in future
and now you should roll that key to avoid abuse: https://stripe.com/docs/keys#rolling-keys
Yes, I put it in for a quick test, thanks.
as for the actual issue, it looks like you have a stripe directory which in django is mapped to a module that leads to a naming conflict
can you try renaming your stripe directory to something like "stripepayments" etc
Yes, this was the error. Thanks for the help and sorry for the ridiculous mistake 😅 .
No trouble at all! Glad to hear it worked