I\'m tired of typing from account_import.models import ImportFile every time I open my Django shell. Is there a way to automatically run this command whenever I fir
from account_import.models import ImportFile
http://docs.python.org/using/cmdline.html#envvar-PYTHONSTARTUP
If you set the environment variable PYTHONSTARTUP to a file, this will be run first whenever you start a python shell.
PYTHONSTARTUP