Skip to main content

Django app that provides compiled Bootstrap assets

Project description

This package provides a Django app whose static folder contains the compiled assets of Twitter Bootstrap.

Each Bootstrap version will be tagged accordingly.

Setup

  1. Install the app:

    pip install static-django-twitter-bootstrap
  2. Inlude it in your Django project:

    # settings.py:
    
    INSTALLED_APPS = (
        ...
        'django_bootstrap_staticfiles',
        ...
    )
  3. Make sure django.contrib.staticfiles.finders.AppDirectoriesFinder is in your list of STATICFILES_FINDERS.

Usage

If you’re not using an asset manager, you can just include them as usual in your site templates.:

{% load staticfiles %}
...
<script type="text/javascript" src="{% static 'js/bootstrap.min.js' %}"></script>
...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-bootstrap-staticfiles-2.3.2.tar.gz (89.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page