to install and use django-static assets just download it using pip
$ pip install django-staticassets
or get it from source
$ pip install git+https://github.com/davidelias/django-staticassets.git#egg=django-staticassets
Then to add Django staticassets to your project, append the app staticassets to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'staticassets',
)
if staticassets is not the last app in the list, and you have more applications overriding runserver command, you will also need to add staticassets static files handler view in the urls.py
from django.conf.urls.static import static
if settings.DEBUG and settings.STATIC_URL:
urlpatterns += static(settings.STATIC_URL, view='staticassets.views.serve')