Skip to content

Instantly share code, notes, and snippets.

@lym
Created February 5, 2015 08:01
Show Gist options
  • Save lym/d794a4615befb0073a20 to your computer and use it in GitHub Desktop.
Save lym/d794a4615befb0073a20 to your computer and use it in GitHub Desktop.
Start an interactive shell in a django project
# With manage.py
$ env/bin/python manage.py shell
# Without manage.py
$ export DJANGO_SETTINGS_MODULE=[module containing your settings]
$ env/bin/python
>>> import django
>>> django.setup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment