Last active
December 20, 2019 02:24
-
-
Save lfalanga/5102418 to your computer and use it in GitHub Desktop.
This file contains hidden or 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, os | |
| sys.path.append('/path/to/your/project') # The directory that contains settings.py | |
| # Set up the Django settings/environment | |
| from django.core.management import setup_environ | |
| from myproject import settings | |
| setup_environ(settings) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment