Modify

Ticket #448 (closed defect: fixed)

Opened 3 years ago

Last modified 20 months ago

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

comment:1 Changed 3 years ago by andrew

  • Status changed from new to infoneeded
  • Milestone set to 0.7.1

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

comment:2 Changed 3 years ago by paluho@…

Yes, this change fixes the problem.

Thanks!

comment:3 Changed 3 years ago by andrew

  • Status changed from infoneeded to closed
  • Resolution set to fixed
View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.