Skip to content

Instantly share code, notes, and snippets.

@miki725
Created January 26, 2015 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miki725/0cd005d7253326a9fa8e to your computer and use it in GitHub Desktop.
Save miki725/0cd005d7253326a9fa8e to your computer and use it in GitHub Desktop.
addition to PyCharm Django Console to load Django models
from django.core.management.color import no_style
from django_extensions.management.shells import import_objects
locals().update(import_objects({'dont_load': []}, no_style()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment