Re: [Django] #21284: Errors in the settings.py file result in misleading messages

2013-10-18 Thread Django
#21284: Errors in the settings.py file result in misleading messages
-+-
 Reporter:  wildfire |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  Core (Management |  Version:
  commands)  |  1.6-beta-1
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by Claude Paroz ):

 In [changeset:"621fc1f1d74df2d9240dea88b5f7ebdf472bca38"]:
 {{{
 #!CommitTicketReference repository=""
 revision="621fc1f1d74df2d9240dea88b5f7ebdf472bca38"
 [1.6.x] Fixed #21284 -- Prevented KeyError swallowing in fetch_command

 Thanks wildfire for the report.

 Backport of 3514bcb251 from master.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.0b6ab126c9feb20dcc03ce9f4d22f2f1%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21284: Errors in the settings.py file result in misleading messages

2013-10-17 Thread Django
#21284: Errors in the settings.py file result in misleading messages
-+-
 Reporter:  wildfire |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  Core (Management |  Version:
  commands)  |  1.6-beta-1
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Claude Paroz ):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"3514bcb251fb623dbd07911e53d417d55934ffa5"]:
 {{{
 #!CommitTicketReference repository=""
 revision="3514bcb251fb623dbd07911e53d417d55934ffa5"
 Fixed #21284 -- Prevented KeyError swallowing in fetch_command

 Thanks wildfire for the report.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.8cfc7f36526734e9895aafc50924c582%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21284: Errors in the settings.py file result in misleading messages

2013-10-17 Thread Django
#21284: Errors in the settings.py file result in misleading messages
-+-
 Reporter:  wildfire |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Core (Management |  Version:
  commands)  |  1.6-beta-1
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by claudep):

 * component:  Uncategorized => Core (Management commands)
 * easy:  0 => 1
 * stage:  Unreviewed => Accepted


Comment:

 That issue is specific to `KeyError`, which is swallowed in
 `fetch_command`. But the workaround is trivial (separate `get_commands()`
 from getting the index).

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.bc33db8e92585b39af0fddfb271bae3c%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21284: Errors in the settings.py file result in misleading messages

2013-10-17 Thread Django
#21284: Errors in the settings.py file result in misleading messages
---+--
 Reporter:  wildfire   |Owner:  nobody
 Type:  Bug|   Status:  new
Component:  Uncategorized  |  Version:  1.6-beta-1
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Changes (by aaugustin):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Does this only happen with `KeyError`, or also with other exceptions? For
 instance what happens if you put `1/0` in your settings file?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.e3d57fbb139a95e6c725d843a6a260c7%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Django] #21284: Errors in the settings.py file result in misleading messages

2013-10-17 Thread Django
#21284: Errors in the settings.py file result in misleading messages
---+
 Reporter:  wildfire   |  Owner:  nobody
 Type:  Bug| Status:  new
Component:  Uncategorized  |Version:  1.6-beta-1
 Severity:  Normal |   Keywords:
 Triage Stage:  Unreviewed |  Has patch:  0
Easy pickings:  0  |  UI/UX:  0
---+
 If you have an error in your settings.py, Django 1.6 will give an error
 indicating that whatever command you are attempting to run does not exist.

 $ django-admin.py startproject djtest .
 $ python manage.py validate
 0 errors found

 Now edit djtest/settings.py and put the following in the file:

 diff -u djtest.orig/settings.py djtest/settings.py
 --- djtest.orig/settings.py 2013-10-17 14:18:51.348674346 +0100
 +++ djtest/settings.py  2013-10-17 14:20:07.773667472 +0100
 @@ -26,6 +26,7 @@

  ALLOWED_HOSTS = []

 +ENV_FACTOR_STUFF = os.environ['ENV_FACTOR_STUFF']

  # Application definition

 # (i.e. attempt to get something from the environment)

 $ python manage.py validate
 Unknown command: 'validate'
 Type 'manage.py help' for usage.

 $ python manage.py runserver
 Unknown command: 'runserver'
 Type 'manage.py help' for usage.


 etc.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.f0ca2d0d38a7c3ad250190b22837ee9d%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.