Created
October 31, 2023 13:02
-
-
Save atsuoishimoto/473623c854760170a4b43d333136de9c to your computer and use it in GitHub Desktop.
manage.pyを使わずにdjangoアプリをロード
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, django | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api_gateway.settings") | |
django.setup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment