#Andrés-python

1 messages · Page 1 of 1 (latest)

hasty bay
quick lynx
#

How are you importing the stripe module in your code? Is it exactly what is in server.py from that tutorial?

river edge
#

Can you share the line of code that's erroring for you?

whole depot
#

Yes, im importing the same way, this is my basic code for now.

river edge
#

just FYI you should obscure/remove your secret (test) key in future

whole depot
#

Yes, I put it in for a quick test, thanks.

river edge
#

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

whole depot
#

Yes, this was the error. Thanks for the help and sorry for the ridiculous mistake 😅 .

river edge
#

No trouble at all! Glad to hear it worked