Created
February 5, 2015 08:01
-
-
Save lym/d794a4615befb0073a20 to your computer and use it in GitHub Desktop.
Start an interactive shell in a django project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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