Skip to content

Instantly share code, notes, and snippets.

@rhenter
Created August 27, 2017 19:30
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 rhenter/c01455dd01f12019334bc9396c5a1241 to your computer and use it in GitHub Desktop.
Save rhenter/c01455dd01f12019334bc9396c5a1241 to your computer and use it in GitHub Desktop.
import sys
sys.path.append('CAMINHO_DO_PROJETO')
from NOME_DO_PROJETO import settings
from django.core.management import setup_environ
setup_environ(settings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment