Created
May 27, 2010 15:55
-
-
Save pmclanahan/415973 to your computer and use it in GitHub Desktop.
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
The answer to the Ultimate | |
Question is {{ everything.universe.answer }}. | |
Among our weapons are:{% for weapon in weapons %} | |
{{ weapon }}{% endfor %} |
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
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