Skip to content

Instantly share code, notes, and snippets.

@nicolasmendoza
Last active August 29, 2015 14:20
Show Gist options
  • Save nicolasmendoza/6943df594e1d61ef8a6d to your computer and use it in GitHub Desktop.
Save nicolasmendoza/6943df594e1d61ef8a6d to your computer and use it in GitHub Desktop.
Shell plus + django 1.7 + pycharm ...initialñ script
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