Re: A helpful ImportError for manage.py when Django isn't installed/available

2016-04-09 Thread Tim Graham
I implemented Shai's suggestion here: https://github.com/django/django/pull/6438 I think we can drop that extra complication when dropping Python 2. On Friday, April 1, 2016 at 6:23:55 AM UTC-4, Shai Berger wrote: > > An idea: Catch the exception; in the handler, try to simply "import > django"

Re: A helpful ImportError for manage.py when Django isn't installed/available

2016-04-07 Thread Tim Graham
Yes, I always install Django in a virtualenv rather than system-wide. I'm sure there are some users installing it system-wide, but I think that's more and more a niche use case. On Thursday, April 7, 2016 at 4:33:44 PM UTC-4, Rafael Henter wrote: > > Tim Graham, > > How do you install django? Ar

Re: A helpful ImportError for manage.py when Django isn't installed/available

2016-04-07 Thread Rafael Henter
Tim Graham, How do you install django? Are you using virtualenv ? Best, Rafael Henter On Thursday, March 31, 2016 at 2:15:05 PM UTC-3, Tim Graham wrote: > > Ben Welsh (palewire) raised a proposal on a GitHub pull request [0]: > > I've seen newbies flounder when they receive this error after ru

Re: A helpful ImportError for manage.py when Django isn't installed/available

2016-04-03 Thread Collin Anderson
We could also wait til after we remove py2 support in January. That way we can be sure that on py3 it will also print the original exception so it doesn't get hidden. (Right?) On Fri, Apr 1, 2016 at 6:23 AM, Shai Berger wrote: > An idea: Catch the exception; in the handler, try to simply "import

Re: A helpful ImportError for manage.py when Django isn't installed/available

2016-04-01 Thread Shai Berger
An idea: Catch the exception; in the handler, try to simply "import django". If this works, reraise, if it fails, print helpful message. On Thursday 31 March 2016 20:15:05 Tim Graham wrote: > Ben Welsh (palewire) raised a proposal on a GitHub pull request [0]: > > I've seen newbies flounder when

A helpful ImportError for manage.py when Django isn't installed/available

2016-03-31 Thread Tim Graham
Ben Welsh (palewire) raised a proposal on a GitHub pull request [0]: I've seen newbies flounder when they receive this error after running manage.py. $ python manage.py Traceback (most recent call last): File "manage.py", line 7, in from django.core.management import execute_from_command_