django-dbtemplates/dbtemplates
Stephan Peijnik 2d46b418da Use the cache to remember which templates were not found in the database.
Also reverse the logic of the database lookup. First check if there is
site-specific template in the database and only if that fails
try to load the global template.
This should cut down the number of database queries that need to be executed,
especially in a loop that includes a given template that does not exist
in the database.

Signed-off-by: Stephan Peijnik <spe@anexia.at>
2011-08-15 12:48:02 +02:00
..
locale Updated translations. 2011-07-06 21:23:41 +02:00
management Added template syntax checker admin actions. 2011-08-15 12:42:27 +02:00
migrations remove name uniqueness, with migration 2011-06-15 16:15:31 +02:00
static/dbtemplates Moved media/* to static/* for new staticfiles compatibility. 2011-04-11 18:00:48 +02:00
utils Use the cache to remember which templates were not found in the database. 2011-08-15 12:48:02 +02:00
__init__.py Bumped version up a bit. 2011-07-08 15:00:28 +02:00
admin.py Added template syntax checker admin actions. 2011-08-15 12:42:27 +02:00
conf.py A bunch of flake8 fixees. 2011-07-01 15:50:04 +02:00
loader.py Use the cache to remember which templates were not found in the database. 2011-08-15 12:48:02 +02:00
models.py A bunch of flake8 fixees. 2011-07-01 15:50:04 +02:00
tests.py Added template syntax checker admin actions. 2011-08-15 12:42:27 +02:00