Last active
August 29, 2015 14:20
-
-
Save nicolasmendoza/6943df594e1d61ef8a6d to your computer and use it in GitHub Desktop.
Shell plus + django 1.7 + pycharm ...initialñ script
This file contains hidden or 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 | |
import django | |
django.setup() | |
from django.db.models import get_models | |
for _class in get_models(): | |
globals()[_class.__name__] = _class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment