Django Deploying locally without setting up apache/nginx


Recommended way of production deployment calls for using Apache/Nginx for serving the static content. Thus, when DEBUG is false static and media contents fail to load. However, we can load the static content in deployment without having to setup Apache/Nginx server for our app using:

python runserver --insecure

This is only intended for local deployment(e.g LAN) and should never be used in production and is only available if the staticfiles app is in your project’s INSTALLED_APPS setting.