Skip to content

Instantly share code, notes, and snippets.

@im-n1
Created March 7, 2020 16:15
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 im-n1/16d0a4909b943b5adda3fb72600a3eef to your computer and use it in GitHub Desktop.
Save im-n1/16d0a4909b943b5adda3fb72600a3eef to your computer and use it in GitHub Desktop.
import os
import sys
import django
sys.path.insert(0, os.path.abspath(os.path.join("..", "..", "app")))
os.environ["DJANGO_SETTINGS_MODULE"] = "richy.settings.dev"
django.setup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment