In last post we enabled in application two urls – for admin and admin-docs sites. When testing application by running runserver command we are able to visit admin site. But why admin-doc returns an error?
The problem is that our installation of python doesn’t have docutils package required by admin-doc site. To fix it we need to install this package. Here I describe steps needed to fix admin-doc site.
Installing setuptools
Default Instant Django installation doesn’t contain setuptools package, which we use for installing docutils. If we want to install setuptools on Windows system we can pass into some troubles. But after a while we find a solution:
- Download setuptools-XXX.tar.gz
- Download setuptools-XXX.egg to a folder(directory) outside your Windows Python installation folder
- Use 7-zip to extract
ez_setup.pyin the same folder as setuptools-XXX.egg- Run start.exe from our Instant Django installation
- Go to the folder containing extracted setuptools and run
python.exe ez_setup.py setuptools-XXX.eggfrom the command prompt
Installing docutils
If installation of setuptools package went ok, we are able to install docutils just by running:
easy_install.exe docutils
That’s all for now. Stay tune!
Leave a Comment so far
Leave a comment