ashutux wrote: > I tried creating two apps under 1 project. > ... > Now,I tried calling a template named "login.html" from second apps' > view (second in the sense it was written at second position in > "INSTALLED_APPS" ) but since "login.html" was also present under > templates directory of first app, load_templates_source found a match > there itself and loaded it, which I think was not intuitive . > Is there any "app_name" context which can load the template from > respective apps' template directory?
No. Rather, the convention is to put application specific templates in a subdirectory of the application templates folder with the same name as the application. That way you can refer to 'app1/login' and 'app2/login'. See: http://code.djangoproject.com/wiki/DosAndDontsForApplicationWriters Kieran