In urls.py, have you set it up properly:

from django.conf.urls.defaults import *
from django.contrib import admin

urlpatterns = patterns('',
    ('^admin/(.*)', admin.site.root),
)

On Dec 27, 7:15 pm, Webchemist <[EMAIL PROTECTED]> wrote:
> Jeremy, thanks to reply!
>
> > What you really want here is to have
> > 'django.template.loaders.app_directories.load_template_source' in your
> > TEMPLATE_LOADERS.  That's really what you want, not add add the admin
> > templates to TEMPLATE_DIRS.
>
> This template loader was enabled of cause from the beginning. But it
> does not help.
>
> The traceback is athttp://dpaste.com/29095/
>
> When I copy admin templates to my project template folder, I get
>
> >"In template d:\projects\nftest\templates\admin\login.html, error at line 4
> >'adminmedia' is not a valid tag library: Could not load template library 
> >from django.templatetags.adminmedia, No module named adminmedia"
>
> It seems that Django searches templates and tempatetags only in
> project folder not in django folder. It's strange because django IS in
> python path and newforms-admin and trunk branches have similar code
> for template loading, but they behavior in the same environment is
> different.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to