Hi:
Today I try to set up the django/satchmo environment for my new colleague.
But I met a weird error.

We use the latest code checked out from bitbucket. And we set it up step by
step with the instruction in satchmo's site.

After the whole install process, we can access the admin/settings of our
site. No error at all.

And we configured the payment module(we use authorize.net), and restart the
server. We got the error.

Caught an exception while rendering: Could not import
> payments.modules.authorizenet_custom.views. Error was: No module named
> signals


>  <a href="{% url profile_detail user.username %}" style="font-weight:bold">
> (this line is highlighted with error)


Seems after the config, django can't find the signals module. (yep, we
installed the signals-ahoy) And django can't reverse the url.

I have tried for 3 times, one is in windows, one is in ubuntu, and the last
time(minutes ago) is using the virtualenv in ubuntu.

Same error.

The most weird thing is the environment we set up before(about 2 months ago)
works well, even I drop the database and create a new database and config
the payment. It works.

so I'm wondering with the same code base, the new environment we set up
today may miss some modules. Or the code base of satchmore has changed
greatly.

The version are all 0.9 pre. And I checked that the one which works well
doesn't have the signals-ahoy, and the one which can't work does have that
module.

Any help?

thanks.

I attach the complete log as a text.
--

朱涛   Tower Joo
Homepage: http://sites.google.com/site/towerjoo
Blog: http://www.cnblogs.com/mindsbook

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

TemplateSyntaxError at /
Caught an exception while rendering: Could not import 
payments.modules.authorizenet_custom.views. Error was: No module named signals
Request Method: GET
Request URL:    http://127.0.0.1:8000/
Exception Type: TemplateSyntaxError
Exception Value:        
Caught an exception while rendering: Could not import 
payments.modules.authorizenet_custom.views. Error was: No module named signals
Exception Location:     
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/template/debug.py
 in render_node, line 81
Python Executable:      /home/tower/dev/freshfanatic/bin/python
Python Version: 2.6.2
Python Path:    ['/home/tower/dev/freshfanatic/apps_sns/friends_app/apps_sns', 
'/home/tower/dev/freshfanatic/apps_sns', 
'/home/tower/dev/freshfanatic/apps_sns', '/home/tower/dev/freshfanatic', 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg',
 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg',
 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/pycrypto-2.0.1-py2.6-linux-i686.egg',
 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Reportlab-2.1.0001-py2.5.egg',
 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/TRML2PDF-1.0-py2.6.egg',
 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/django_registration-0.7-py2.6.egg',
 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/PyYAML-3.09-py2.6-linux-i686.egg',
 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/sorl_thumbnail-3.2.4-py2.6.egg',
 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/pytz-2009l-py2.6.egg',
 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/simplejson-2.0.9-py2.6-linux-i686.egg',
 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/MySQL_python-1.2.3c1-py2.6-linux-i686.egg',
 '/usr/local/lib/python2.6/dist-packages/django_app_plugins-0.1.0-py2.6.egg', 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/django_threaded_multihost-1.3_2-py2.6.egg',
 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/django_signals_ahoy-0.1_0-py2.6.egg',
 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Satchmo-0.9_pre-py2.6.egg',
 '/home/tower/dev/freshfanatic/lib/python2.6', 
'/home/tower/dev/freshfanatic/lib/python2.6/plat-linux2', 
'/home/tower/dev/freshfanatic/lib/python2.6/lib-tk', 
'/home/tower/dev/freshfanatic/lib/python2.6/lib-old', 
'/home/tower/dev/freshfanatic/lib/python2.6/lib-dynload', '/usr/lib/python2.6', 
'/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages', 
'/home/tower/dev/freshfanatic/lib/python2.6/site-packages/PIL', 
'/usr/local/lib/python2.6/site-packages']
Server time:    Fri, 18 Sep 2009 08:03:04 -0500
Template error

In template /home/tower/dev/freshfanatic/templates/default_header_footer.html, 
error at line 100
Caught an exception while rendering: Could not import 
payments.modules.authorizenet_custom.views. Error was: No module named signals
90                                  </div>
91                              </div>
92                              <div id="login_section">
93                                  <div id="login_bar">
94                                      <table style="width:231px; height:24px" 
border="0" cellspacing="0" cellpadding="0">
95                                          <tr>
96                                              <td width="5px"><img src="{{ 
MEDIA_URL }}images/login_bar_left_side.png" alt="" /></td>
97                                              <td width="226px" 
bgcolor="#ff550e" style="text-align:center">
98                                                  {% if user.is_authenticated 
%}
99                                                  <span href="#" 
class="white_link">
100                                                     <a href="{% url 
profile_detail user.username %}" style="font-weight:bold">
101                                                         {% if 
user.get_profile.name %}
102                                                             {{ 
user.get_profile.name }}
103                                                         {% else %}
104                                                             {{ 
user.username }}
105                                                         {% endif %}
106                                                     </a>
107                                                     <span 
class="yellow_devider" style="margin:auto 5px;"> | </span>
108                                                     <a href="{% url 
auth_logout %}?next=/">
109                                                         LOGOUT
110                                                     </a>
Traceback Switch to copy-and-paste view

/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/core/handlers/base.py
 in get_response
                response = callback(request, *callback_args, **callback_kwargs) 
...
▶ Local vars
/home/tower/dev/freshfanatic/../freshfanatic/homepage/views.py in index
    return render_to_response('homepage.html',ctx) ...
▶ Local vars
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/shortcuts/__init__.py
 in render_to_response
    return HttpResponse(loader.render_to_string(*args, **kwargs), 
**httpresponse_kwargs) ...
▶ Local vars
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/template/loader.py
 in render_to_string
    return t.render(context_instance) ...
▶ Local vars
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/template/__init__.py
 in render
        return self.nodelist.render(context) ...
▶ Local vars
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/template/__init__.py
 in render
                bits.append(self.render_node(node, context)) ...
▶ Local vars
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/template/debug.py
 in render_node
            result = node.render(context) ...
▶ Local vars
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/template/loader_tags.py
 in render
        return compiled_parent.render(context) ...
▶ Local vars
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/template/__init__.py
 in render
        return self.nodelist.render(context) ...
▶ Local vars
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/template/__init__.py
 in render
                bits.append(self.render_node(node, context)) ...
▶ Local vars
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/template/debug.py
 in render_node
            result = node.render(context) ...
▶ Local vars
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/template/defaulttags.py
 in render
                    return self.nodelist_true.render(context) ...
▶ Local vars
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/template/__init__.py
 in render
                bits.append(self.render_node(node, context)) ...
▶ Local vars
/home/tower/dev/freshfanatic/lib/python2.6/site-packages/Django-1.1-py2.6.egg/django/template/debug.py
 in render_node
            raise wrapped ...
▶ Local vars

Reply via email to