Apache HTTPD work every well in VM world. If your deployment environment use container technologies like
Kubernetes, it become bulky and hard to config.
Recently, I discovered a lighter alternative solution call
or, add it into
WhiteNoise to the
MIDDLEWARE = [
WhiteNoiseMiddleware must be above all other middleware apart from Django’s
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
And you still need collect statics files
python manage.py collectstatic
That's it. Now you can run whatever app server you want, somethings like:
python manage.py runserver
gunicorn YOUR_APP.wsgi # change YOUR_APP to your real app