#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: <https://code.djangoproject.com/ticket/21284>
Django <https://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 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.

Reply via email to