Hello. I had the same problem a few days ago (i'm just discovering Django…)
after installing v 0.96. It seems to be a problem with the installer (two
folders not copied during the process : "admin/templates"  and
"admin/media"). 

 

To make things work, I had to copy manually the folders from the Django
Archive to the following locations : 

 

python/libs/site_packges/django/contrib/admin/templates
python/libs/site_packges/django/contrib/admin/media

 

On my Macbook, everything works perfectly now.

 

I found the solution on the page below. Just read the thread to find
indications related to your OS (the place where you should copy the folders
is not the same if you are on Windows or Linux or Mac): 

 

http://groups.google.com/group/django-users/browse_thread/thread/20bb5ab1ed8
df496/7323c1dad954c87b?hl=en&lnk=gst&q=TemplateDoesNotExist+at+%2Fadmin%2F#7
323c1dad954c87b

 

 

 

Fred Reillier

[EMAIL PROTECTED]

 

http://www.lanquarem.com

http://www.musique-electro.net

 

De : django-users@googlegroups.com [mailto:[EMAIL PROTECTED] De
la part de ¤???? AbdulHafeez
Envoyé : lundi 9 juin 2008 12:51
À : django-users@googlegroups.com
Objet : Re: Problem with admin (urls)

 

please use this link and check

http://localhost:8000/admin

regards

AbdulHafeez

On Mon, Jun 9, 2008 at 4:15 PM, Nader <[EMAIL PROTECTED]> wrote:


Hello,

I have a question. I have started a new project.

This is my "urls.py" file :

from django.conf.urls.defaults import *

urlpatterns = patterns('',
   # Example:
   # (r'^nadc/', include('nadc.foo.urls')),

   # Uncomment this for admin:
   (r'^admin/', include('django.contrib.admin.urls')),

)

But If I request the admin page ("http://localhost:8000/adim"; I get
the next message:

Request Method:         GET
Request URL:    http://145.23.236.80:8080/admin/
Exception Type:         TemplateDoesNotExist
Exception Value:        admin/login.html
Exception Location:     /data/cesar/home/Python-2.4.4/lib/python2.4/site-
packages/Django-0.96.1-py2.4.egg/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:

Would somebody tell me what the problem is ?

Regards,
Nader





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