So far, we have been writing our view functions with HTML hard-coded directly in the Python code. I have done that to keep things simple while I demonstrated core concepts, but in the real world, this is nearly always a bad idea. Django ships with a simple yet powerful template engine that allows you to separate the design of the page from the underlying code. We will dive into the Django's template engine next.
No comments:
Post a Comment