The Python Oracle

Django - what is the difference between render(), render_to_response() and direct_to_template()?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping

--

Chapters
00:00 Question
01:02 Accepted answer (Score 199)
02:39 Answer 2 (Score 42)
03:40 Answer 3 (Score 26)
04:17 Answer 4 (Score 12)
04:50 Thank you

--

Full question
https://stackoverflow.com/questions/5154...

Question links:
[Nathan Borror's basic apps examples]: https://github.com/nathanborror/django-b...

Accepted answer links:
https://docs.djangoproject.com/en/1.8/to...
https://docs.djangoproject.com/en/1.8/to...
https://docs.djangoproject.com/en/1.8/re...
https://docs.djangoproject.com/en/1.3/to.../

Answer 2 links:
[can be used in views.py to avoid having to type RequestContext]: https://web.archive.org/web/201305270128...
[this one]: http://fi.am/entry/shortcutting-render_t.../
[this one]: http://djangosnippets.org/snippets/133/
[basic.tools.shortcuts.py]: https://github.com/nathanborror/django-b...

Answer 3 links:
[generic view]: https://docs.djangoproject.com/en/1.4/re...

Answer 4 links:
[docs]: https://docs.djangoproject.com/en/1.4/to...
[here]: https://docs.djangoproject.com/en/1.4/re...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #django

#avk47