WebFaction
Community site: login faq

I'm installing Satchmo 0.9.2 on Django 1.2.5 with Python 2.7 following these instructions: http://forum.webfaction.com/viewtopic.php?pid=10579#p10579

When I want to check my installation, I get the following error:

$ python manage.py satchmo_check
Checking your satchmo configuration.
Using Django version 1.2.5
Using Satchmo version 0.9.2-pre hg-unknown
The following errors were found:
Unable to resolve url. Received error- Reverse for 'satchmo_search' with arguments '()' and keyword arguments '{}' not found.

My urls.py looks like this:

from django.conf.urls.defaults import *
from satchmo_store.urls import urlpatterns

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^myproject/', include('myproject.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
)

Using the reverse function on the command line, I get:

$ python manage.py shell
Python 2.7.1 (r271:86832, Dec  1 2010, 06:29:57) 
>>> from django.core.urlresolvers import reverse
>>> reverse(satchmo_search)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
NameError: name 'satchmo_search' is not defined

I'm new to Satchmo and Django, so any help would be appreciated.

asked 26 Feb '11, 10:11

BioGeek
336
accept rate: 0%

edited 26 Feb '11, 10:26


Try changing urlpatterns from:

urlpatterns = patterns('',

To:

urlpatterns += patterns('',

Right now you are import urlpatterns from satchmo, but then you are declaring a new urlpatterns. Using += will add the new urls to the existing satchmo urlpatterns.

permanent link

answered 26 Feb '11, 11:34

aaronh ♦♦
1.3k3
accept rate: 34%

Thanks, that did the trick!

(26 Feb '11, 15:25) BioGeek
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×7

question asked: 26 Feb '11, 10:11

question was seen: 9,766 times

last updated: 26 Feb '11, 15:25

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM