Render to response is deprecated in version 2.
https://docs.djangoproject.com/en/2.0/topics/http/shortcuts/#render-to-response

Use render.

Dylan

On Fri, Jan 12, 2018 at 2:48 PM, Artush Ghazaryan <
artush.ghazarya...@gmail.com> wrote:

> 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
>
> --
> 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 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
> <https://groups.google.com/d/msgid/django-users/dc829dd9-236e-4b9e-8954-9bf376146678%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHtg44AKMcuOkxYQxx_6aKV7i%2BJXSX6PoYJq5boqKjnvxUQqng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to