-----Mensaje original-----
De: Thomas
Enviados: 28/03/2012 15:48:00
Asunto: Creating a new payment module
Hi,
Many thanks,
Thomas
--
You received this message because you are subscribed to the Google Groups "Satchmo users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/l8PaE71DWHYJ.
To post to this group, send email to satchm...@googlegroups.com.
To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
Hi,I've created a simple payment module in src/satchmo/satchmo/apps/payment/modules. It works fine there, but I would rather not have it in the satchmo source tree. How can I get it to function from my 'store' directory? If I move it to store/ or store/localsite/ I get the error "Error: No module named payment.modules.vcs" (My module is called vcs obviously.) I did update settings.py from 'payment.modules.vcs' to 'localsite.payment.modules.vcs' but that didn't help. (I created the structure store/localsite/payment/modules/vcs/...)
Does importing from localsite usually work? Have you tried adding "store." in front? Do the __init__.py files exist in all those directories?
Add it to SATCHMO_SETTINGS dict in your settings.pyLZAntal
Thomas,
A) you wrote
> Error: No module named payment.modules.vcs
You have forgetten harcoded "payment.modules.vcs" somewhere!
You should see eventually "no ... store.localsite.vcs" in the worst
case only.