Skip to content

Instantly share code, notes, and snippets.

@selynna
Last active April 29, 2019 19:09
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 selynna/7000aaad7311083a72d36d7031465c52 to your computer and use it in GitHub Desktop.
Save selynna/7000aaad7311083a72d36d7031465c52 to your computer and use it in GitHub Desktop.
import os
from waitress import serve
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_azure_demo.settings")
application = get_wsgi_application()
serve(application,host="0.0.0.0",port=os.environ["PORT"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment