Modify ↓
Ticket #448 (closed defect: fixed)
south syncdb affects app_template_dirs content so template loader raises TemplateDoesNotExist for existing templates
| Reported by: | paluho@… | Owned by: | andrew |
|---|---|---|---|
| Priority: | major | Milestone: | 0.7.1 |
| Component: | commands | Version: | 0.7 |
| Keywords: | Cc: |
Description
When I'm running tests for my app some of them raises TemplateDoesNotExist for existing templates. Exception is raised because app_template_dir cache (from django/template/loaders/app_directories.py line 20) is incomplete. It is filled, in my case, during fixture loading (by some render_to_string call) when settings.INSTALLED_APPS doesn't contains apps for migration (apps_migrated management/commands/syncdb.py line 39).
Maybe you should recreate this cache after migrations?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

Should be fixed with [630dd2b42e48] - please confirm.