<!-- Given this model:

class Shipment(models.Model):
	ordernum = models.CharField('Order Number', max_length=10)
	scheduled_date = models.DateField('date scheduled')

	def __unicode__(self):
		return self.ordernum

	class Meta:
		ordering = ["-ordernum"]

-->

<!--Base Site -->


<!DOCTYPE html>
<html>
<head>{% block head %}{% endblock %}
<link rel="stylesheet" type="text/css" href="http://jquery-ui.googlecode.com/svn/tags/latest/themes/base/jquery-ui.css" media="all" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script type="text/javascript">
    $(function() {
        $('.vDateField').datepicker();
    });
</script>
{% block scripts %}{% endblock %}
<title>Site Name</title>

</head>
<body bgcolor="#1E0F0F">
<div id="engrave"><h1><font color="white">Site Name</font></h1></div>
<div id="content">
<h2>{% block title %}{% endblock %}</h2>
{% block content %}{% endblock %}<br />
<div align="right"><p><i>Site powered viciously by OWLad</i></p></div>
</div>
</body>
</html>

<!-- Then create a page that uses the model: -->

{% extends "base_site.html" %}
{% block title %}Add Shipment{% endblock %}
{% block content %}
<p>{{ messsage }}</p>
<form method="post">
{{ addform.as_p }}
<input type="submit" value="Create Shipment" />
</form>
{% endblock %}