Suppose you have a template called monster.html that looks like this: <html> <body> <h1>Company name</h1> <div id="content"> Lorem ipsum </div> </body> </html>
Then, create a Django view and make it render a template called, say, home.html which you make to look like this: {% extends "monster.html" %} {% block title %}My Company!{% endblock %} {% block content %} Welcome to my website {% endblock %} Now, in the same directory as home.html you now need to turn your monster template into a Django template so change it to this: <html> <body> <h1>{% block title %}{% endblock %}</h1> <div id="content"> {% block content %}{% endblock %} </div> </body> </html> The rest is easy: Plain and simple reading of the Django docs and tutorial. On Sep 12, 8:19 pm, aftalavera <aftalaverafo...@gmail.com> wrote: > Hi there, > > All I need is a sample (if available) or a working example on how to use > an existing HTML template into the Django template system. Am I on the > wrong track integrating both? > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---