django-inline-static provides template tags to inline css and javascript files in Django templates, also corrects relative urls in css “url()” calls.
Features
Template tag to inline any static file inline_staticfile
Template tag to inline javascript files inline_javascript
Template tag to inline css files inline_style
relative to absolute path converter for paths in css files
Requirements
django-inline-static supports Python 3 only and requires at least Django 1.11.
Prepare for development
A Python 3.6 interpreter is required in addition to pipenv.
$ pipenv install --python 3.6 --dev
$ pipenv shell
$ pip install -e .
Now you’re ready to run the tests:
$ pipenv run py.test
Resources
Metadata
Release files for django-inline-static 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-inline-static-0.1.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_inline_static-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / django-inline-static-0.1.0.tar.gz
| Download URL | django-inline-static-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d36ad0b73f2f9fd1459bd0f390aca166007078c6fa75dc98bea1a2582905599
|
|
BLAKE2b-256 checksum How to use checksums |
80a2deae217eaaa0396c375db0dd40e67df1c6379ba77fa156b81c6a57368e18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Release files / django_inline_static-0.1.0-py3-none-any.whl
| Download URL | django_inline_static-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d392df5104181a2d2c1146ac88f4ddd2d17678b8632e6c6c1b95e458d9d72439
|
|
BLAKE2b-256 checksum How to use checksums |
56bbe99d2bbc4117b487096785a6759e3459ff9a069ecb154bb9c4f213f4790c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|