#16205 closed New feature (fixed)
Beginners install guide for Windows
Reported by: | erlingbo | Owned by: | ANUBHAV JOSHI |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | install, windows |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When people are completely new to Python and Django there are often easy to stumble upon certain show stoppers making the interest fade away.
When people are attending basic tutorials or classes, there should be an easy way to get Django installed as fast as possible. This is not well documented for the Windows platform.
Documentation on how to get a basic Django environment running on Windows is included as a rst file. I have not made a lot of thoughts of where in the documentation this should be included. Maybe as a topic? Or in intro?
Comments and improvements are more than welcome.
Attachments (2)
Change History (19)
by , 13 years ago
Attachment: | install-windows.txt added |
---|
comment:1 by , 13 years ago
Patch needs improvement: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
Setting "patch needs improvement" because the attachement is not actually a patch. This file must be added in docs
, and linked to from other pages.
IMO https://docs.djangoproject.com/en/dev/topics/install/ is an appropriate entry point.
comment:2 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Going to make this a patch.
by , 13 years ago
Attachment: | 16205.diff added |
---|
comment:3 by , 13 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
I ended up putting the tutorial in /howto/windows, parallel to /howto/jython, since it is a howto with a specific target audience rather than an exhaustive guide. However, I think that it still needs work. I would have tried, but I don't really use windows much. Things that I think need to be fixed:
- the guide installs easy_install *and* pip. Shouldn't easy_install be enough? Having both will probably confuse beginners who just want to get things installed.
- the guide assumes that the users have administrative access and want to use it in combination with a shell. On linux, easy_install has a --user option which installs to the user's directory (thus avoiding the need for admin access) - isn't there a similar option on windows?
- There is only one pitfall in "Common pitfalls" - perhaps rename the section? Also, what's the policy on linking to stackoverflow answers from django docs?
comment:4 by , 13 years ago
I see your point about both easy_install and pip. Though, I thought PIP was starting to be the defacto package manager, and do we then want to let beginners start using (and learning) easy_install? Installing PIP is not a hard nor time consuming task.
I am not aware of such an option at least. And I could not find such an option in the basic help for either easy_install nor pip. I do not normally develop on Windows, and maybe I didn't look good enough.
The 'Common pitfalls' sections was/is supposed to be bigger. There are probably more things that can go wrong. We are working with a guide for Windows, right? ;)
Regarding the policy of linking to Stackoverflow, I do not know what the policy is. Someone else will have to answer on that one. If that is not ok, we will have to include the whole solution into this guide.
follow-up: 6 comment:5 by , 13 years ago
A couple of comments based on reading about a billion emails from Windows people making all kinds of errors:
- This needs to be tested on a few different versions of Windows. Unsurprisingly, not everybody runs the latest version. The documentation needs to mention which versions the instructions are for. At a minimum, I would think Windows 7 and Vista are needed.
- Prefer pip as much as possible (although to bootstrap it, you need easy-install). It is a much better habit to get into.
- Try to write the instructions so that they work for non-admin users if at all possible.
- Find some willing friends, colleagues, people who owe you something, mailing list compadres, ... anybody you can to test it from a clean slate. It took us a lot of attempts to even get the instructions correct for how to make "python django-admin.py" work correctly across multiple Windows versions in earlier documentation. There is a distinct lack of consistency (or sanity) involved.
comment:6 by , 13 years ago
Replying to mtredinnick:
- Prefer pip as much as possible (although to bootstrap it, you need easy-install). It is a much better habit to get into.
I agree pip should be preferred, but easy_install isn't needed actually. setuptools (or its better sibling Distribute) is needed though (which also contain easy_install, but that's not important).
See http://www.pip-installer.org/en/latest/installing.html for installing/upgrading instructions, especially the bootstrapper called get-pip.py
(which internally is pip itself).
comment:8 by , 12 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
I'll work on the documentation. My job wants me to update our internal wiki's "Setting up a developer laptop" page, which has a large section on getting up and running with Django.
comment:9 by , 11 years ago
I am thinking to work on this.
I use django with windows. I know how to setup django environment on windows. I think along with "beginner guide" we should also add how to setup django development environment(for contribution) on windows, especially running test suite with virtualenv
.
If someone is already working on this, please reply.
comment:10 by , 11 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
comment:11 by , 11 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:12 by , 11 years ago
I want to make sure what we are aiming for:
Make a separate howto
for installing on windows and incorporate relevant details in install page also.
I will include the following steps:
1)Install python using MSI installer. Setting up Environment variables(if not set as in some cases in Windows 8)
2)Install setuptools using its setup file(ez_setup.py) or if your windows has a powershell(as in Windows 8 onwards) there is a direct way.
3)Install django using easy_install django
or download source and unzip install using python setup.py install
4)For database eg.MySQL install MySQL then its python connector.
5)Relevant links to source pkg pages will be there.
We also need to add how to run test suite on windows in development environment using virtualenv.(We could include that in this as well.)
Well I prefer easy_install
over pip
.
Reasons for it:
pip
has some problem when installing behind proxy even when env var have been set,easy_install
works smoothely.- Also
easy_install
gives a much better progress display. eg. If some dependancy could not be installed it gives the url which it could not fetch we could go there in the browser and manually download source pkg and install using python setup.py install.
Any changes required?
comment:14 by , 11 years ago
Patch needs improvement: | unset |
---|
comment:15 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Beginners install guide for Windows