2008/6/20 sggottlieb <[EMAIL PROTECTED]>:

> Hello all,
>
> I am running 0.96 and and was breezing through the tutorials until I
> hit the part where you enable the admin site (http://
> www.djangoproject.com/documentation/0.96/tutorial02/).
>
> I get this error message:
>
>
> TemplateDoesNotExist at /admin/
> admin/login.html
> Request Method:         GET
> Request URL:    http://localhost:8000/admin/
> Exception Type:         TemplateDoesNotExist
> Exception Value:        admin/login.html
> Exception Location:     /Library/Python/2.5/site-packages/django/template/
> loader.py in find_template_source, line 72
> Template-loader postmortem
>
> Django tried loading these templates, in this order:
>
>    * Using loader
> django.template.loaders.filesystem.load_template_source:
>    * Using loader
> django.template.loaders.app_directories.load_template_source:
>
> Traceback (innermost last)
> [snipped]
>
> I don't even know where to start to look for the templates for the
> admin.   I looked under site packages:
>
> /Library/Python/2.5/site-packages/django/contrib/admin
>
> But got nothing.  Does anyone have any hints where I should be
> looking?  Did I miss a setup step?
>

Looks like you're on a Mac?  Is it Max OS X 10.5?  If so then I think you
are hitting this:

http://code.djangoproject.com/ticket/7414

Django code expects its data (templates, css, etc.) files to be in the same
file tree as the code, but it seems setup on Mac OS X 10.5 places them in a
completely different place.

If this is what you are hitting then somehow you need to get the admin's
'templates' and 'media' trees from wherever they've been placed (there's a
likely path in that ticket, or you could just copy them from the un-tarred
tarfile) over to inside the same tree as the Django Python code, looks like
that is:

/Library/Python/2.5/site-packages/django/contrib/admin

in your case.

Karen

--~--~---------~--~----~------------~-------~--~----~
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