steven-king/django-teaching-roster — pull request #1 by leetrout (2013-02-17 04:15:47+00:00)
Title: Fix missing request context

## This is 1 of 2 PRs. Don't merge both!

This is just the css link fix. The other has some clean up :) Pick which one you want and delete the other.

You can only use `{{ STATIC_URL }}`if there is a request context present. This is done with either:

`render_to_response('template', {'foo': 'bar'}, RequestContext(request))`

or

`render(request, 'template', {'foo': 'bar'})`

So I kept your form consistent.

Good idea to know that those get there through our context processors and "static" is there by default...

https://docs.djangoproject.com/en/1.4/ref/settings/#template-context-processors

https://docs.djangoproject.com/en/1.3/topics/http/shortcuts/#render