#19216 closed Cleanup/optimization (fixed)
Use user level installation rather than system level in advanced tutorial
Reported by: | ncoghlan | Owned by: | Tim Graham |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The new advanced tutorial uses system level installation for simplicity in:
https://docs.djangoproject.com/en/dev/intro/reusable-apps/#using-your-own-package
This requires several of the steps to be run with administrator privileges.
It should be possible to avoid this (and make the section even simpler) just by changing the installation command in this section to:
python setup.py install --user
This obviously won't work in versions prior to 2.6, but there's no reason a beginner would be using such an old version (and if they are, lack of per-user package support is going to be the least of their problems)
Note that per-user installations can still affect the behaviour of system tools run as that user, so virtualenv is still the more robust solution. However, per-user installs also have a *lot* recommend them over system level installs (such as being usable on systems where you don't have admin access, not running downloaded code with admin privileges, as well as not affecting the behaviour seen by system services and other users of the machine).
Attachments (1)
Change History (7)
comment:1 by , 12 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 12 years ago
Owner: | changed from | to
---|
by , 12 years ago
Attachment: | 19216.diff added |
---|
comment:3 by , 12 years ago
Has patch: | set |
---|
comment:5 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Yes, this is a great idea. Python 2.6 is the minimum supported version for Django 1.5+ anyway, so that's not even an issue. Don't know why I didn't think of this option when reviewing that doc addition (well, actually, I do know why, it's because I don't have a use for
--user
personally), but it's totally the right thing here.