Created
May 4, 2015 17:16
-
-
Save nicolasmendoza/7d3a6230f8262a947215 to your computer and use it in GitHub Desktop.
Default startup script django console pych
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
import sys; print('Python %s on %s' % (sys.version, sys.platform)) | |
import django; print('Django %s' % django.get_version()) | |
sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS]) | |
if 'setup' in dir(django): django.setup() | |
import django_manage_shell; django_manage_shell.run(PROJECT_ROOT) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment