#2490: [patch] make runtests.py error messages more user friendly
--------------------------------+-------------------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  adrian          
     Status:  new               |            Component:  Unit test system
    Version:  SVN               |           Resolution:                  
   Keywords:                    |                Stage:  Accepted        
  Has_patch:  1                 |           Needs_docs:  1               
Needs_tests:  0                 |   Needs_better_patch:  1               
--------------------------------+-------------------------------------------
Changes (by Gary Wilson <[EMAIL PROTECTED]>):

  * needs_better_patch:  0 => 1
  * stage:  Unreviewed => Accepted
  * needs_docs:  0 => 1

Comment:

 Marking this as accepted since, at the very least, the help text should be
 printed out.
 
 Also, probably want to use sys.stderr.write() to print the error message
 instead of the print statement.  The error message should mention
 something about setting `DJANGO_SETTINGS_MODULE` or using `--settings`, or
 at least let the user know that they are seeing the message because
 `DJANGO_SETTINGS_MODULE` is not set.  Just saying "No settings file found"
 is not as helpful.
 
 Personally, I don't think we should try to import a settings module in the
 runtest directory, since this would user code added to the django source
 tree.  Besides, you can use whatever settings you want with the
 environment variable or the `--settings` option.  If this code is taken
 out then I would say no documentation is needed, but if it stays then
 there should be documentation about it.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2490#comment:3>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to