﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
143	Problem running the command line examples in Tut 1 when using --settings option	sdelatorre@…	Adrian Holovaty	"In tutorial 1, under ""Playing with the API"", none of the examples will work if you've been using the --settings option with django-admin.py (the DJANGO_SETTINGS_MODULE env variable was never set).  To work, you have to do the following before importing the project objects:

{{{
>>> import os
>>> os.environ['DJANGO_SETTINGS_MODULE']='myproject.settings.main'
>>> from django.models.polls import polls, choices
}}}

Is there a more user friendly way to do this?  Maybe add a global variable to django.conf that is used to do the import?

{{{
>>> django.conf.DJANGO_SETTINGS_MODULE='myproject.settings.main'
}}}

or possibly

{{{
>>> django.settings_module='myproject.settings.main'
}}}"	defect	closed	Core (Other)		normal	fixed			Accepted	0	0	0	0	0	0
