bradleyayers/django-tables2 — Issue #44: Documentation should clarify paths used (for templates)
Author: Kreychek
Created: 2011-11-15 16:59:13+00:00
State: open

I found this plugin within days of learning Django and ran into the following problem:

I did the official Django tutorial the other day and then later installed this plugin via easy_setup. I am not sure if the tutorial's having users edit the template path is what caused this, but when I got to the point where the DT2 guide has you enter "{{ table.as_html }}" in your HTML file, the page returned a "template not found" error until I copied the relevant dirs/files from the DT2 egg into my project's template path.

I was only able to figure this out b/c Django's official docs list that templates whose path aren't specified are searched for in the Django contrib folder which in my case was extracted from the egg to a folder with the same name:

"...\Python27\Lib\site-packages\django-1.3.1-py2.7.egg"

I can see why this happens now, but perhaps a note should be made of this in the docs, as new users may not understand the method behind finding files.