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