On Wednesday, March 28, 2012 10:08:26 PM UTC+2, Tomas Neme wrote:
>
> Does importing from localsite usually work? Have you tried adding "store."
> in front? Do the __init__.py files exist in all those directories?
Yes. I have a fully functional site with everything under localsite working
properly. I also have __init__.py in there (as well as a templatetags
directory, etc). If I leave my payment module (vcs) in the satchmo source
tree with the other payment modules like authorizenet, then it works
perfectly.)
To move my 'vcs' module from the satchmo source tree, I tried this:
- Created store/localsite/vcs
- Changed settings.py as follows: payment.modules.vcs became
store.localsite.vcs
This is localsite:
.
├── admin.py
├── contact.py
├── __init__.py
├── models.py
├── templatetags
│ ├── __init__.py
│ └── local_tags.py
├── urls.py
├── vcs
│ ├── config.py
│ ├── __init__.py
│ ├── models.py
│ ├── processor.py
│ ├── urls.py
│ └── views.py
└── views.py
This is settings.py:
INSTALLED_APPS = (
'store.localsite.vcs',
...
)
This is urlpatterns in the urls.py in vcs/
(r'^confirm/$', 'store.localsite.vcs.views.confirm', {'SSL':ssl},
'VCS_satchmo_checkout-step2'),
(r'^approved/$', 'store.localsite.vcs.views.approved', {'SSL':ssl},
'VCS_satchmo_checkout-approved'),
(r'^declined/$', 'store.localsite.vcs.views.declined', {'SSL':ssl},
'VCS_satchmo_checkout-declined'),
I've also tried putting vcs into store/ but with similar results.
The current error I'm seeing is "Caught ViewDoesNotExist while rendering:
Could not import store.localsite.vcs.views. Error was: No module named
vcs.processor"
--
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/-/Db_gu0jeScIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en.