Hello,

What is the best way to track down these types of errors?

in ntw.urls I have: (r'^checkout/', include('checkout.urls')),

in checkout I have:
urlpatterns = patterns('checkout.views',
    #(r'^$', 'show_checkout', {'template_name': 'checkout/checkout.html' }, 
'checkout'),
    (r'^receipt/$', 'receipt', {'template_name': 'checkout/receipt.html' 
},'checkout'),
)

if I comment out receipt, the error goes away.

in checkout.views
def receipt(request, template_name='checkout/receipt.html'):
    """ page displayed with order information after an order has been 
placed successfully """
    order_number = request.session.get('order_number','')
    if order_number:
        order = Order.objects.filter(id=order_number)[0]
        order_items = OrderItem.objects.filter(order=order)
    else:
        pass
        #cart_url = urlresolvers.reverse('show_cart')
       # return HttpResponseRedirect(cart_url)
    return render_to_response(template_name, locals(), 
context_instance=RequestContext(request))



ImportError at /

No module named models

Request Method:GETRequest URL:http://127.0.0.1:8000/Django 
Version:1.4.3Exception 
Type:ImportErrorException Value:

No module named models

Exception 
Location:C:\ndsutil\Menus\CTD-NDSUser\PycharmProjects\ntw\checkout\views.py 
in <module>, line 5Python Executable:C:\Python27\python.exePython Version:
2.7.3Python Path:

['C:\\ndsutil\\Menus\\CTD-NDSUser\\PycharmProjects\\ntw',
 'C:\\Python27\\lib\\site-packages\\pip-1.2.1-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\django_tinymce-1.5.1b4-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\django_ckeditor-3.6.2.1-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\pillow-1.7.8-py2.7-win32.egg',
 'C:\\Windows\\system32\\python27.zip',
 'C:\\Python27\\DLLs',
 'C:\\Python27\\lib',
 'C:\\Python27\\lib\\plat-win',
 'C:\\Python27\\lib\\lib-tk',
 'C:\\Python27',
 'C:\\Python27\\lib\\site-packages']

Server time:Wed, 6 Feb 2013 13:30:58 -0500
Error during template rendering

In template 
C:\ndsutil\Menus\CTD-NDSUser\PycharmProjects\ntw\templates\index.html, 
error at line *22*
No module named models12{% endblock %} 13 14{% block shopping_cart %} 15<img 
src="/static/img/shopping_cart.png"/> 16<img src="/static/img/basket.png"/> 
17{% endblock %} 18 19{% block non_tire_categories %} 20<h3>Categories</h3> 
21{% for row in active_categories %} 22 <a href="{% url category row.id %}">{{ 
row.name }} </a><br /> 23{% endfor %}

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to