Skip to content

torpedoallen/django-cdn-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements


    see pip-req.txt

Sample Django settings


    STATIC_ROOT = 'static/build'  # build directory

    ONLINE_STATIC_ROOT = 'static' # online prefix

    CDN_FINDER_PREFIX = 'http://static.example.com'

    INSTALLED_APPS = (
        'other apps',
        'cdn',
    )

    JINJA2_EXTENSIONS = (
        # extensions
        'cdn.extensions.CdnExtension',
    )

Hope to help


here is a static files packaging script

About

django, jinja2 based cdn extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages