Skip to content

Instantly share code, notes, and snippets.

@pmclanahan
Created May 27, 2010 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmclanahan/415973 to your computer and use it in GitHub Desktop.
Save pmclanahan/415973 to your computer and use it in GitHub Desktop.
The answer to the Ultimate
Question is {{ everything.universe.answer }}.
Among our weapons are:{% for weapon in weapons %}
{{ weapon }}{% endfor %}
import django
from django.conf import settings
from django.template.loader import render_to_string
settings.configure(TEMPLATE_DIRS=('.',))
class DjangoDemo(Demo):
name = 'django'
version = django.get_version()
def demo(self, vars):
return render_to_string('django.txt', vars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment