# In this example we're accessing an auth profile (avatar), and a static string in a template. # First we would need the following environment file (.env) from environment.standard import AuthProfileGenerator entries = { 'avatar':AuthProfileGenerator(), 'greeting':'Hello', } # views.py from environment import ctx from django.shortcuts import render_to_response def hello(request): return render_to_response('hello.html',ctx()) # hello.html
{{ env.greeting }}, {{ env.avatar }}