matching query does not exist Python Django -
I am programming in Django 1.4.3 with Python 2.7 in Windows Vista, from which the website is being offered . So I have various products listed in my > That product Recovers and feeds it on my website However, when I type Well, this fact may well be that with an Integerfield Unicode string, However changing the proposed URL may not help you get rid of the error. Because you will still get the argument in the form of a string. However, you should change the argument id_prod to int and also ensure that id = 2 / productive subpage. Now I am trying to display page
/ product / / which is to show that page with the product listed Shows This is my
urls.py , which acts as the index of my pages:
singleProduct_view function in
views.py I $$,' logout_view ', name =' vista_logout '),) < / Pre>
def singleproduct_view (request, id_prod): prod = producto.objects.get (id = id_prod) ctx = {'producto': prod} Return to Render_to_reponse ('home / SingleProducto.html', Ctx, context_instance = RequestContext (Request))
/ producto / 2, I producto match query does not exist 'error' What's the problem?
Comments
Post a Comment