Opened 10 years ago

Closed 9 years ago

#3902 closed (fixed)

Add installation docs for Windows users

Reported by: yary h <…> Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The web page has instructions for installing the official version which does not work for Windows- windows has no "sudo" and furthermore, " install" complains about \django\ having no

Attachments (1)

install.diff (4.9 KB) - added by nick@… 9 years ago.
Patch for install.txt to provide more detailed instructions for Windows users

Download all attachments as: .zip

Change History (7)

comment:1 Changed 10 years ago by Simon G. <dev@…>

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Summary: Web docs for "Installing the official version" doesn't work for WindowsAdd installation docs for Windows users
Triage Stage: UnreviewedAccepted

Can someone who uses windows write up a step by step install process?

comment:2 Changed 9 years ago by PenguinMan98 at usa dot net

Version: SVN0.96

OK, the thing wasn't written for windows so you have to account for 2 things. First, in the on line 24 you need to change:

package = dirpath[len_root_dir:].lstrip('/').replace('/', '.')


package = dirpath[len_root_dir:].lstrip('
', '.')

Next, you will have no doubt noticed that windows doesn't support 'sudo'. Just type ' install' on the command line.

That should do the trick!

comment:3 Changed 9 years ago by Malcolm Tredinnick

Please attach a patch to the existing install.txt that is written against the most recent code (for example, was fixed quite a while ago to work with Windows).

comment:4 Changed 9 years ago by nick@…

Version: 0.96SVN

The attached patch is a first stab at a more Windows-friendly install.txt. It doesn't add all that much to the docs, to be honest. Key changes are:

  • Explicit mention of (and links to) Windows tools that can untar the Django distribution
  • Explanation of how to run on Windows
  • Different approach suggested to installing the development version on Windows

The last point deserves some explanation. The current version of install.txt suggests that Windows users check out the trunk's django directory directly into site-packages. This patch suggests, instead, that Windows users check out all of the trunk, as do users of other platforms, and then that they include the path to the django directory in their PYTHONPATH environment variable (or, equivalently, define the PythonPath directive if using Apache and mod_python).

I realise this new approach isn't entirely foolproof, but I think it is best if users on all platforms can check out the development version in the same way.

Changed 9 years ago by nick@…

Attachment: install.diff added

Patch for install.txt to provide more detailed instructions for Windows users

comment:5 Changed 9 years ago by Chris Beaven

Has patch: set
Triage Stage: AcceptedReady for checkin

Good stab, Nick.

comment:6 Changed 9 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(In [6178]) Fixed #3902 -- Added some excellent notes about installing Django on Windows. Thanks, nick@….

Note: See TracTickets for help on using tickets.
Back to Top