On 8 déc, 01:47, Xbiton <saverio.scave...@googlemail.com> wrote: (snip) > unfortunately when I try to access the admin interface I recive an > error saiying me that ther's no template for the apps, even I added > the template folder ti the TEMPLATE_DIRS. > > Now I wondering why, in the debug page of the django server I see that > to the template path django automatically adds admin/login.html
Seems logical to add 'admin/login.html' if the template loader is looking for a template named 'login.html' and supposed to live in a directory named 'admin'. > even > the path I added to TEMPALTE_DIR was only /django-site/test/cms/ > templates/. I'm not sure this is what you really have in your settings - the traceback mentions "/Users/xaver/Documents/django-site/test/cms/templates/admin/ login.html" Also, you may want to re-read the doc for template loaders - you don't need to explicitely specifify each and any installed app's 'templates' dir in TEMPLATE_DIRS, the app_directories template_loader will automatically search these directories. > practically the complete path > django is searching is /django-site/test/cms/templates/admin/ > login.html > is that right? cf above. Also and FWIW, I think there's something missing in your INSTALLED_APPS - the admin app. You should probably fix this first. > Installed Applications: > ['django.contrib.auth', > 'django.contrib.contenttypes', > 'django.contrib.sessions', > 'django.contrib.sites', > 'django.contrib.flatpages', > 'cms.frontend'] (snip) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.