matthiask / plata

Plata - the lean and mean Django-based Shop
https://plata-django-shop.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
197 stars 63 forks source link

When I click "Add to cart" button, I'll get an error page. #38

Closed dengyuanzhong closed 11 years ago

dengyuanzhong commented 11 years ago

url: /shop/products/1/

When I click "Add to cart" button, I'll get an error page ():

DoesNotExist at /shop/products/1/ No exception supplied Request Method: POST Request URL: http://127.0.0.1:8000/shop/products/1/ Django Version: 1.4.1 Exception Type: DoesNotExist Exception Location: PROJECT_DIR\plata\product\models.py in get_price, line 41 Python Executable: C:\Python27\python.exe Python Version: 2.7.1

I've added a price for my product, but it seems that the get_price() didn't get a price, and then the 'except IndexError' executed, but 'self.prices.model' is not a model?

Python Version: 2.7.1 Django version: 1.4.1 Database: MySQL 5.0.67

Thanks.

matthiask commented 11 years ago

Can you post the full traceback for this error? It might provide further pointers about the problem.

matthiask commented 11 years ago

Please reopen if you've got further information