Getting StartedΒΆ

Install the package into your python environment:

$ /path/to/pyvenv/bin/pip install djed.static

Include it in your Pyramid application:

config.include('djed.static')

Set-up the path to the bower_components directory in your .ini file:

[app:main]
# ... other settings ...
djed.static.components_path = myapp:static/bower_components

Or use the following statement to add the bower_components directory:

config.add_bower_components('myapp:static/bower_components')

Include static resources on your HTML page. You can do this in templates or somewhere else in your code:

request.include('jquery')

All additional required resources are automatically resolved and are also included on your HTML page.