How can I be certain that my application is running on development server or not? I suppose I could check value of settings.DEBUG and assume if DEBUG
settings.DEBUG
DEBUG
You could check request.META["SERVER_SOFTWARE"] value:
request.META["SERVER_SOFTWARE"]
dev_servers = ["WSGIServer", "Werkzeug"] if any(server in request.META["SERVER_SOFTWARE"] for server in dev_servers): print("is local")