Django

19 views
Skip to first unread message

Artush Ghazaryan

unread,
Jan 12, 2018, 8:02:38 PM1/12/18
to Django users

NameError at /8/poqrik-ishxan/

name 'render_to_response' is not defined
Request Method:GET
Request URL:http://127.0.0.1:8000/8/poqrik-ishxan/
Django Version:2.0
Exception Type:NameError
Exception Value:
name 'render_to_response' is not defined
Exception Location:E:\Django-Shop\myshop\shop\views.py in ProductDetail, line 25
Python Executable:C:\Python36\python.exe
Python Version:3.6.3
Python Path:
['E:\\Django-Shop\\myshop',
 'C:\\Python36\\python36.zip',
 'C:\\Python36\\DLLs',
 'C:\\Python36\\lib',
 'C:\\Python36',
 'C:\\Python36\\lib\\site-packages',
 'C:\\Python36\\lib\\site-packages\\pytz-2017.3-py3.6.egg']
Server time:Сб, 13 Янв 2018 02:34:41 +0400
Снимок экрана (42).png

Dylan Reinhold

unread,
Jan 12, 2018, 9:03:56 PM1/12/18
to django...@googlegroups.com
Use render.

Dylan

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/dc829dd9-236e-4b9e-8954-9bf376146678%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages