Coder Social home page Coder Social logo

rik / whitenoise Goto Github PK

View Code? Open in Web Editor NEW

This project forked from evansd/whitenoise

0.0 1.0 0.0 854 KB

Radically simplified static file serving for Python web apps

Home Page: https://whitenoise.readthedocs.io

License: MIT License

JavaScript 0.23% Python 99.14% CSS 0.56% HTML 0.07%

whitenoise's Introduction

WhiteNoise

image

image

image

image

pre-commit

Radically simplified static file serving for Python web apps

With a couple of lines of config WhiteNoise allows your web app to serve its own static files, making it a self-contained unit that can be deployed anywhere without relying on nginx, Amazon S3 or any other external service. (Especially useful on Heroku, OpenShift and other PaaS providers.)

It's designed to work nicely with a CDN for high-traffic sites so you don't have to sacrifice performance to benefit from simplicity.

WhiteNoise works with any WSGI-compatible app but has some special auto-configuration features for Django.

WhiteNoise takes care of best-practices for you, for instance:

  • Serving compressed content (gzip and Brotli formats, handling Accept-Encoding and Vary headers correctly)
  • Setting far-future cache headers on content which won't change

Worried that serving static files with Python is horribly inefficient? Still think you should be using Amazon S3? Have a look at the Infrequently Asked Questions.

To get started, see the documentation.

whitenoise's People

Contributors

evansd avatar adamchainz avatar pre-commit-ci[bot] avatar keimlink avatar thedrow avatar timgraham avatar edmorley avatar rsalmaso avatar cuducos avatar rtibbles avatar pauloxnet avatar ndevox avatar mkai avatar jnns avatar jamesbeith avatar hanswilw avatar acdha avatar openjck avatar jribbens avatar lukeburden avatar mdalp avatar bz2 avatar mathieusteele avatar mdboom avatar mjhea0 avatar pamelafox avatar peterjclaw avatar ryanrhee avatar sammeeey avatar hartwork avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.