Code

Changes between Version 11 and Version 12 of DjangoCheatSheet


Ignore:
Timestamp:
01/23/07 22:43:59 (7 years ago)
Author:
Neal McBurnett
Comment:

base template example

Legend:

Unmodified
Added
Removed
Modified
  • DjangoCheatSheet

    v11 v12  
    8585 
    8686First create ''Acme_base.html'' in templates 
     87{{{ 
     88<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
     89    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     90<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
     91<head> 
     92    <title>{% block title %}My amazing site{% endblock %}</title> 
     93</head> 
     94 
     95<body> 
     96    <div id="content"> 
     97        {% block content %}{% endblock %} 
     98    </div> 
     99</body> 
     100</html> 
     101}}} 
    87102 
    88103Next create ''invoice_list.html'' in templates/invoices