s3kvir pascon


Running django admin docs
November 2, 2010, 16:00
Filed under: Uncategorized | Tags: , ,

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:

  1. Download setuptools-XXX.tar.gz
  2. Download setuptools-XXX.egg to a folder(directory) outside your Windows Python installation folder
  3. Use 7-zip to extract ez_setup.py in the same folder as setuptools-XXX.egg
  4. Run start.exe from our Instant Django installation
  5. Go to the folder containing extracted setuptools and run python.exe ez_setup.py setuptools-XXX.egg from 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!

Advertisement

Leave a Comment so far
Leave a comment



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s



Follow

Get every new post delivered to your Inbox.