Skip to content

Instantly share code, notes, and snippets.

@SerhatTeker
Created February 25, 2019 19:09
Show Gist options
  • Save SerhatTeker/7f4b57caafff35f7d843af4f22caf6e1 to your computer and use it in GitHub Desktop.
Save SerhatTeker/7f4b57caafff35f7d843af4f22caf6e1 to your computer and use it in GitHub Desktop.
Django AppRegistry Manual - Django Manual Test Setup
# region Django Conf Test Setup
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.dev')
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
# endregion
# code to test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment