Skip to content

Instantly share code, notes, and snippets.

@bmihelac
Created February 13, 2013 08:27
Show Gist options
  • Save bmihelac/4943082 to your computer and use it in GitHub Desktop.
Save bmihelac/4943082 to your computer and use it in GitHub Desktop.
Execute python management command from shell
from django.core.management import execute_from_command_line
execute_from_command_line(['', 'show_urls'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment