Public bug reported:

When creating a project and uncomment the line :

(r'^admin/doc/', include('django.contrib.admindocs.urls')),

in urls.py to activate local Documentation, a link Documentation appears in the 
Administration interface to this URL :
http://127.0.0.1:8000/admin/doc/

If you click on it, here is the following error :

-----------------

TemplateDoesNotExist at /admin/doc/
admin_doc/missing_docutils.html

---------------

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:
          o 
/home/nicolas/workspace/mortpasmort/core/templates/admin_doc/missing_docutils.html
 (File does not exist)
          o 
/var/lib/python-support/python2.5/django/contrib/admin/templates/admin_doc/missing_docutils.html
 (File does not exist)

----------------

To fix this, you only have to do in root :

cd /var/lib/python-support/python2.5/django/contrib/admin/templates
ln -s 
/usr/share/python-support/python-django/django/contrib/admindocs/templates/admin_doc

After this, the error page could be displayed normally, and inform us
that the docutils package is missing. So, to reproduce this bug, you
don't have to have installed the docutils package.

Nicolas

** Affects: python-django (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Missing folder admin_doc
https://bugs.launchpad.net/bugs/274352
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to