| | 92 | == Do I have to hard-code my media URL in all my templates for CSS, images and Javascript? == #MediaURL |
| | 93 | |
| | 94 | No; you can use {{ MEDIA_URL }}. If you're using the development version of django and generic views, you can use {{ MEDIA_URL }} without changing anything. |
| | 95 | |
| | 96 | If you're using the development version and render_to_response(), you'll have to include RequestContext, as described here: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext |
| | 97 | |
| | 98 | If you're using 0.96, you can get the same functionality by creating a template context processor, as described: http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context-processors/ |
| | 99 | |