﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28878	"""pip install django"" is broken on Python 2; can be fixed for most users with metadata"	Zac Hatfield Dodds	nobody	"For users on Python 2, 'pip install django' ''should'' install the latest compatible version, which is 1.11.x.

Unfortunately, it currently tries to install Django 2.0, and setup.py throws an error (the details are unimportant, except that it's a terrible user experience).  This is unfortunately inevitable for users with very old versions of pip, who are therefore out of luck unless they upgrade it.

For any user with pip 9+ though, we can use the [https://packaging.python.org/tutorials/distributing-packages/#python-requires python-requires] argument to 'setuptools.setup'.  All users will then transparently get the latest version that is compatible with their Python, and all will be well.

[http://www.python3statement.org/practicalities/] has a range of further advice on making this process as smooth as possible, including tips about setuptools versions and where to insert explicit warnings and errors for users who somehow get an incompatible version anyway.

I'd be happy to review any patches in relation to this, or help write them if someone can help with django-specific questions :-)"	Bug	closed	Packaging	2.0	Release blocker	fixed		Sergey Fedoseev	Accepted	1	0	0	0	0	0
