Skip to content

Instantly share code, notes, and snippets.

@amertkara
Last active August 29, 2015 14:15
Show Gist options
  • Save amertkara/89a6aa32529fad8b21eb to your computer and use it in GitHub Desktop.
Save amertkara/89a6aa32529fad8b21eb to your computer and use it in GitHub Desktop.
Script with headers required to run like django manage.py
import sys
import os
sys.path.append('path/to/django/project/root')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from django.conf import settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment