 <p>This flask cdn <a href="https://www.keycdn.com/support/flask-cdn-integration-guide/" rel="nofollow">integration guide</a> may be worth taking a read through. Basically you can install the <a href="https://github.com/libwilliam/flask-cdn" rel="nofollow">Flask-CDN extension</a> and define your CDN URL within your app.py file like so:</p> <pre><code>from flask import Flask from flask.ext.cdn import CDN app = Flask(__name__) app.config['CDN_DOMAIN'] = 'cdn.yourdomain.com' CDN(app) </code></pre>