November 21, 2009
Django has three builtin template loaders which are used to get the templates for rendering.
TEMPLATE_LOADERS = (
‘django.template.loaders.filesystem.load_template_source’,
‘django.template.loaders.app_directories.load_template_source’,
# ‘django.template.loaders.eggs.load_template_source’,
)
Writing your template loader is a awfuly easy. It is a callable which
Returns a tuple of (openfile, filename) if it can find the template.
Raise TemplateDoesNotExist if [...]
Read the full article →
November 11, 2009
This is announcement about our new work, Django Gotchas, a teeny tiny ebook about commonly occurring gotchas with Django. Here is the readme copied from the project.
Django-gotchas is a collections of gotchas which happen commonly when you are working with Django.
They are some errors which I have made commonly or seen others do, these [...]
Read the full article →