To be able to use the idle shell with django i am trying to set the DJANGO_SETTINGS_VARIABLE manually.I included the directory where the settings.py resides in the sys.path.and was able to import it.but the following doesn't seem to work .
import settings
from django.core.management import execute_manager
execute_manager(settings)
I also tried
settings = imp.find_module('settings')
execute_manager(settings)
taking clue from manage.py but of no help. what's going on here , also how can a file be imported as a module , i remember a module needs to have a inti file inside a dir .