Last active
August 29, 2015 14:15
-
-
Save amertkara/89a6aa32529fad8b21eb to your computer and use it in GitHub Desktop.
Script with headers required to run like django manage.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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