This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.template.loader import get_template | |
from django.template import Context | |
import cStringIO as StringIO | |
import cgi | |
import ho.pisa as pisa | |
def render_to_pdf(template_src, context_dict): | |
template = get_template(template_src) | |
context = Context(context_dict) | |
html = template.render(context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>SIG SMTT</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script src="http://www.openlayers.org/api/OpenLayers.js"></script> | |
<script type="text/javascript"> | |
var map; | |
function init(){ | |
map = new OpenLayers.Map('map'); |