#20177: Don't use setup_test_environment in the shell in testing tutorial ----------------------------------+------------------------------------ Reporter: vlad.london.uk@… | Owner: nobody Type: Bug | Status: closed Component: Documentation | Version: 1.5 Severity: Normal | Resolution: fixed Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------------+------------------------------------
Comment (by Christophe R. Patrouch): Perhaps another line to add is one indicates that just typing Python rather than Python manage.py shell will result in errors, e.g.django.core.exceptions.ImproperlyConfigured: Requested setting CACHES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. -- Ticket URL: <https://code.djangoproject.com/ticket/20177#comment:12> 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/082.5a44d96ffd4be65da0628d93c2c9bdfe%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.