Hi all,
some time ago, I noticed that I got an error when I clicked on the
link to Documentation in the Django admin.
I also saw that admin docs had been moved from
/django/contrib/admin/templates/admin_doc/
to
/django/contrib/admindocs/templates/admin_doc/
but some part of my Django installation was still trying to get a
template from /django/contrib/admin/templates/admin_doc/
Today, I installed revision 8520 and notice that the error is still
there. This is what I get when I click on the Documentation link in my
Django admin (in my case leading to
http://localhost/vr/admin/doc/):
----------------------------------------------------
TemplateDoesNotExist at /vr/admin/doc/
admin_doc/index.html
Request Method: GET
Request URL:
http://localhost/vr/admin/doc/
Exception Type: TemplateDoesNotExist
Exception Value:
admin_doc/index.html
Exception Location: /Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/site-packages/django/template/loader.py in
find_template_source, line 73
-----------------------------------------------------
And in the report for template searching I see the following:
----------------------------------------------------
Using loader
django.template.loaders.app_directories.load_template_source:
* /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/django/contrib/admin/templates/admin_doc/index.html
(File does not exist)
--------------------------------------------------------
As you see some part of the code is looking for the admin index
template in:
/django/contrib/admin/templates/admin_doc/index.html
instead of:
/django/contrib/admindocs/templates/admin_doc/index.html
Am I alone with this problem?
Traceback listed below.
Regards
Ulf
---------------------------------------
Environment:
Request Method: GET
Request URL:
http://localhost/vr/admin/doc/
Django Version: 1.0-beta_1-SVN-8520
Python Version: 2.5.1
Installed Applications:
['vr.isi',
'
vr.org',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware')
Template Loader Error:
Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.load_template_source:
/var/local/web/vr/templates/admin_doc/index.html (File does not exist)
/Users/ulf/web/vr/templates/admin_doc/index.html (File does not exist)
Using loader
django.template.loaders.app_directories.load_template_source:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/django/contrib/admin/templates/admin_doc/index.html (File
does not exist)
Traceback:
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/django/core/handlers/base.py" in get_response
86. response = callback(request, *callback_args,
**callback_kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/django/contrib/admin/views/decorators.py" in _checklogin
61. return view_func(request, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/django/contrib/admindocs/views.py" in doc_index
29. }, context_instance=RequestContext(request))
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/django/shortcuts/__init__.py" in render_to_response
18. return HttpResponse(loader.render_to_string(*args,
**kwargs), **httpresponse_kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/django/template/loader.py" in render_to_string
102. t = get_template(template_name)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/django/template/loader.py" in get_template
80. source, origin = find_template_source(template_name)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/django/template/loader.py" in find_template_source
73. raise TemplateDoesNotExist, name
Exception Type: TemplateDoesNotExist at /vr/admin/doc/
Exception Value: admin_doc/index.html