python manage.py shell
node2:/django/mysite#export DJANGO_SETTINGS_MODULE='mysite.settings'
node2:/django/mysite#python manage.py shell
aaaaaaaaaaaaaaaa
Python 2.7.3 (default, Mar 30 2017, 20:15:12)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import django
>>> django.setup()
>>> from news import models
>>> from news.models import *
>>> import django
>>> django.setup()
>>> car = Car.objects.get(name="57 Chevy")