Solved this problem already.

The problem lies inside of /usr/lib/python2.5/site-packages/django/
contrib/admin/. Some files were not installed properly. The login.html
exist but it has no contents inside. I opened up the
Django-1.1.1.tar.gz and grabbed /django/contrib/admin/ and extracted
it in /usr/lib/python2.5/site-packages/django/contrib/admin/.

This solved my problem for the mean time. But I got the worries that
other directories might have this problem. Can anyone lighten me a
bit?

And also, just for asking ;), why does it didn't install properly? I
did python setup.py install.
Is the cause of this problem is Cygwin? Django? or python?


On Mar 21, 4:15 am, ragingmon <raging...@gmail.com> wrote:
> Hello all
>
> I'm using cygwin 1.7 in windows7 with django 1.1.1 and python 2.5.2.
>
> I followed this 
> tuthttp://docs.djangoproject.com/en/1.1/intro/tutorial02/#intro-tutorial02
>
> I got stuck looking for solution to this problem. I always get a
> TemplateDoesNotExist at /admin/ when going tohttp://localhost:8000/admin/.
> I tried placing '/usr/lib/python2.5/site-packages/django/contrib/admin/
> templates', in TEMPLATE_DIRS but nothing works
>
> I was thinking that this problem maybe on permissions?
>
> Shown below is the 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:     /usr/lib/python2.5/site-packages/django/template/
> loader.py in find_template_source, line 74
> Python Executable:      /usr/bin/python
> Python Version: 2.5.2
> Python Path:    ['/cygdrive/d/desktop/poll', '/usr/lib/python25.zip', '/
> usr/lib/python2.5', '/usr/lib/python2.5/plat-cygwin', '/usr/lib/
> python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/lib/
> python2.5/site-packages', '/usr/lib/python2.5/site-packages/gtk-2.0']
> Server time:    Sat, 20 Mar 2010 14:49:48 -0400
>
> Template-loader postmortem
>
> Django tried loading these templates, in this order:
> Using loader django.template.loaders.filesystem.load_template_source:
> /usr/lib/python2.5/site-packages/django/contrib/admin/templates/admin/
> login.html (File exists)
> Using loader
> django.template.loaders.app_directories.load_template_source:
> /usr/lib/python2.5/site-packages/django/contrib/admin/templates/admin/
> login.html (File exists)

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

Reply via email to