2

Sorry if this is a completely retarded question, but I was wondering if it's possible to see the pure html code generated by a django template. Again, I'm really new to django, so I apologize if this is a stupid question.

Thanks!

asked Apr 22, 2011 at 8:19

2 Answers 2

6

Django templates don't result in HTML code, they result in a node tree. The engine then renders the node tree in order to generate the appropriate output.

answered Apr 22, 2011 at 8:22
Sign up to request clarification or add additional context in comments.

Comments

2

It might seem like a slightly obvious answer, but have you tried "View Source" in your browser?

If you want to improve your understanding, read the Django docs and check out how Template and Context objects work.

answered Apr 22, 2011 at 10:52

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.