I missed this note in the docs:
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Warning
You must use Django registration 0.7 with Satchmo. When 0.8 comes out,
we will migrate to the new version.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Also, add to root urls.py
urlpatterns += patterns('',
url(r'^accounts/', include('registration.urls')),
)
url(r'^reg/', include('registration.urls')), -- does not work
But, I'm still getting errors:
======================================================================
ERROR: test_activation_view (registration.tests.RegistrationViewTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/django/src/django-registration-0.7/registration/
tests.py", line 301, in test_activation_view
kwargs={ 'activation_key':
RegistrationProfile.objects.get(user=self.sample_user).activation_key }))
File "/home/django/src/django-trunk/django/test/client.py", line
290, in get
response = self.request(**r)
File "/home/django/src/django-trunk/django/core/handlers/base.py",
line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/django/src/satchmo-trunk/satchmo/apps/satchmo_store/
accounts/views.py", line 218, in activate
contact = Contact.objects.get(user=account)
File "/home/django/src/django-trunk/django/db/models/manager.py",
line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/home/django/src/django-trunk/django/db/models/query.py", line
341, in get
% self.model._meta.object_name)
DoesNotExist: Contact matching query does not exist.
======================================================================
FAIL: test_cart_removing (satchmo_store.shop.tests.ShopTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/django/src/satchmo-trunk/satchmo/apps/satchmo_store/shop/
tests.py", line 249, in test_cart_removing
self.assertContains(response, "Your cart is empty.", count=1,
status_code=200)
File "/home/django/src/django-trunk/django/test/testcases.py", line
367, in assertContains
" (expected %d)" % (real_count, text, count))
AssertionError: Found 0 instances of 'Your cart is empty.' in response
(expected 1)
======================================================================
FAIL: test_checkout (satchmo_store.shop.tests.ShopTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/django/src/satchmo-trunk/satchmo/apps/satchmo_store/shop/
tests.py", line 301, in test_checkout
self.assertContains(response, 'reportlab', status_code=200)
File "/home/django/src/django-trunk/django/test/testcases.py", line
361, in assertContains
" (expected %d)" % (response.status_code, status_code))
AssertionError: Couldn't retrieve page: Response code was 404
(expected 200)
======================================================================
FAIL: test_registration_view
(registration.tests.RegistrationViewTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/django/src/django-registration-0.7/registration/
tests.py", line 289, in test_registration_view
self.assertEqual(response.status_code, 302)
AssertionError: 200 != 302
----------------------------------------------------------------------
Ran 243 tests in 231.626s
FAILED (failures=3, errors=1)
On Aug 4, 12:16 am, Mrainess <[email protected]> wrote:
> It seems two missing templates may be the cause
>
> Using:
> Django version 1.2.1 SVN-13302
> Satchmo version 0.9.2-pre hg-2022:221692b480a1
> registration : '0.8 alpha 1'
> Postgres 8.3
> Simple Satchmo new install using clonesatchmo
>
> TemplateDoesNotExist: registration/test_template_name.html
> TemplateDoesNotExist: registration/registration_closed.html
> ERROR: test_activation_extra_context
> (registration.tests.views.RegistrationViewTests)
> TemplateSyntaxError: Caught KeyError while rendering:
> expiration_days
> ERROR: test_invalid_activation
> (registration.tests.views.RegistrationViewTests)
> TemplateSyntaxError: Caught KeyError while rendering:
> expiration_days
> ERROR: test_registration_extra_context
> (registration.tests.views.RegistrationViewTests)
> TypeError: 'NoneType' object is unsubscriptable
> ERROR: test_valid_activation
> (registration.tests.views.RegistrationViewTests)
> DoesNotExist: RegistrationProfile matching query does not exist.
> FAIL: test_cart_removing (satchmo_store.shop.tests.ShopTest)
> AssertionError: Found 0 instances of 'Your cart is empty.' in
> response (expected 1)
> FAIL: test_checkout (satchmo_store.shop.tests.ShopTest)
> AssertionError: Couldn't retrieve page: Response code was 404
> (expected 200)
> FAIL: test_registration_template_name
> (registration.tests.views.RegistrationViewTests)
> AssertionError: No templates used to render the response
> FAIL: test_registration_view_failure
> (registration.tests.views.RegistrationViewTests)
> AssertionError: 302 != 200
> FAIL: test_registration_view_initial
> (registration.tests.views.RegistrationViewTests)
> AssertionError: 302 != 200
> FAILED (failures=5, errors=10)
>
> Full result in:http://dpaste.com/224838/
--
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
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.