{ "info": { "author": "Steven Cummings", "author_email": "cummingscs@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries" ], "description": ".. image:: https://pypip.in/v/django-twitter-bootstrap/badge.png\n :target: https://pypi.python.org/pypi/django-twitter-bootstrap/\n :alt: Latest Version\n\n.. image:: https://pypip.in/d/django-twitter-bootstrap/badge.png\n :target: https://pypi.python.org/pypi/django-twitter-bootstrap/\n :alt: Downloads\n\nOverview\n========\n\nThis package provides a `Django `_ app whose static folder contains\nthe sources of `Bootstrap `_, nothing more and nothing\nless. The un-minified `LESS `_ and javascript sources are included to be\nintegrated into your Django site as you see fit. If you simply want to use the minified CSS and JS\nfiles provided by the Bootstrap project, you probably don't need this anyway.\n\nFurther goals of this project include:\n\n- To include Bootstrap as a git submodule, so as to include specific release tags and avoid the\n mess of managing a copy of Bootstrap.\n- To provide versions that mirror Bootstrap releases going forward.\n\nAnd that's it! Bootstrap pre-packaged for Django.\n\nI found that other similar projects:\n\n- Did not keep up with recent versions of Bootstrap.\n- Simply made a copy of the Bootstrap sources, messy and unnecessary.\n- Tied the packaging to their own clever template tags or other Django components. You should have\n your choice of these things apart from this packaging.\n\nSetup\n=====\n\n**NOTE** The paths of the included bootstrap assets have now been namespaced within the app's\n``static`` folder. The ``less`` and ``js`` folders now reside within a ``twitter_bootstrap``\nfolder.\n\nFirst, install the app::\n\n pip install django-twitter-bootstrap==3.3.0\n\nThen include it in your Django project::\n\n # settings.py:\n\n INSTALLED_APPS = (\n ...\n 'twitter_bootstrap',\n ...\n )\n\nThis also assumes you haven't removed ``django.contrib.staticfiles.finders.AppDirectoriesFinder``\nfrom the ``STATICFILES_FINDERS`` config setting.\n\nProvided staticfiles\n====================\n\nOf course what's provided is just Bootstrap, but more specifically...\n\nglyphicons\n----------\n\nThese don't need to be specified or configured in your project, but they are included all the\nsame.\n\n- ``twitter_bootstrap/fonts/glyphicons-halflings-regular.eot``\n- ``twitter_bootstrap/fonts/glyphicons-halflings-regular.svg``\n- ``twitter_bootstrap/fonts/glyphicons-halflings-regular.ttf``\n- ``twitter_bootstrap/fonts/glyphicons-halflings-regular.woff``\n\nLESS\n----\n\n- ``twitter_bootstrap/less/bootstrap.less``\n\nAlso included are lots of other LESS files included by the above that aren't worth listing out.\nThe above file is the common entry point for usage of Bootstrap styles.\n\nJavaScript\n----------\n\nUnlike the LESS sources, the javascript modules each represent a feature set\nthat you may or may not want to include in your site. These files are\ntypically hand-picked based on the needs of your site. Please check the\nBootstrap documentation for info on which of these modules depends on others.\n\n- ``twitter_bootstrap/js/transition.js``\n- ``twitter_bootstrap/js/modal.js``\n- ``twitter_bootstrap/js/dropdown.js``\n- ``twitter_bootstrap/js/scrollspy.js``\n- ``twitter_bootstrap/js/tab.js``\n- ``twitter_bootstrap/js/tooltip.js``\n- ``twitter_bootstrap/js/popover.js``\n- ``twitter_bootstrap/js/alert.js``\n- ``twitter_bootstrap/js/button.js``\n- ``twitter_bootstrap/js/collapse.js``\n- ``twitter_bootstrap/js/carousel.js``\n- ``twitter_bootstrap/js/affix.js``\n\nPlain Usage\n===========\n\nIf you're not using an asset manager, you can just include them as usual in your site templates::\n\n {% load staticfiles %}\n ...\n \n ...\n\nUsage with an asset pipeline\n============================\n\nOf course I recommend you not go plain, and instead use an asset manager that helps with the\nfiltering, concatenating, minification, and other processing of your static assets. One such\nmanager is `django-pipeline `_.\n\n- Follow the setup instructions for django-pipeline\n- Define asset groups which provide Bootstrap\n- Use asset groups in your templates.\n\nConfiguration\n-------------\n\nCreate asset groups including the bootstrap LESS and Javascript you want to include::\n\n # settings.py\n\n PIPELINE_CSS = {\n ...\n 'bootstrap': {\n 'source_filenames': (\n 'twitter_bootstrap/less/bootstrap.less',\n ),\n 'output_filename': 'css/b.css',\n 'extra_context': {\n 'media': 'screen,projection',\n },\n },\n ...\n }\n\n PIPELINE_JS = {\n ...\n 'bootstrap': {\n 'source_filenames': (\n 'twitter_bootstrap/js/transition.js',\n 'twitter_bootstrap/js/modal.js',\n 'twitter_bootstrap/js/dropdown.js',\n 'twitter_bootstrap/js/scrollspy.js',\n 'twitter_bootstrap/js/tab.js',\n 'twitter_bootstrap/js/tooltip.js',\n 'twitter_bootstrap/js/popover.js',\n 'twitter_bootstrap/js/alert.js',\n 'twitter_bootstrap/js/button.js',\n 'twitter_bootstrap/js/collapse.js',\n 'twitter_bootstrap/js/carousel.js',\n 'twitter_bootstrap/js/affix.js',\n ),\n 'output_filename': 'js/b.js',\n },\n ...\n }\n\nOf course you need to set up a\n`LESS compiler `_\nfor pipeline to use when processing the styles::\n\n # settings.py\n\n PIPELINE_COMPILERS = (\n 'pipeline.compilers.less.LessCompiler',\n )\n\nThen, in the\n`PIPELINE_LESS_ARGUMENTS `_\nsetting, supply an ``--include`` option which tells ``lessc`` where bootstrap LESS sources and any\nof your own live::\n\n # settings.py\n\n import os\n\n # TODO update this to reflect where your settings live relative to the project root\n BASE_DIR = os.path.dirname(os.path.dirname(__file__))\n\n my_app_less = os.path.join(BASE_DIR, 'my_app', 'static', 'less')\n\n # For apps outside of your project, it's simpler to import them to find their root folders\n import twitter_bootstrap\n bootstrap_less = os.path.join(os.path.dirname(twitter_bootstrap.__file__), 'static', 'less')\n\n PIPELINE_LESS_ARGUMENTS = u'--include-path={}'.format(os.pathsep.join([bootstrap_less, my_app_less]))\n\nPlease note that for any LESS sources outside of your project root, usually these are installed\nDjango packages, it is simpler to import the package and determine the package root from the\nimport module's ``__file__`` attribute.\n\nTemplate setup\n--------------\n\nA sample Django template using the assets::\n\n ...\n {% load compressed %}\n ...\n \n ...\n {% compressed_css 'bootstrap' %}\n ...\n \n \n ...\n {% compressed_js 'bootstrap' %}\n ...\n \n \n\nThat's it. Enjoy!\n\nVersion ranges matching bootstrap versions\n==========================================\n\nAs stated above in the goals, versions of this package should match versions of Bootstrap, where\navailable. This presents something of a problem if and when we need to make updates to the\n*packaging* here. We can't just upgrade any of the three common components of semantic versioning,\nbecause those map to versions of Bootstrap. So, we'll use revisions when needed.\n\nE.g., suppose we have django-twitter-bootstrap 3.2.0 which packages Bootstrap 3.2.0. If we\nneed to enhance or fix the packaging, we release it as revised version 3.2.0-1.\n\nTherefore, if you're getting a packaging for the first time you could specify it as a very tight\nrange of that target version or no less than the next patch level version. E.g., target 3.2.0 with\n``>=3.2.0,<3.2.1``. Each of these captures all revisions to packagings targeting a specific version\nof Bootstrap.\n\nFinally, it should be re-iterated that the need for this should be the exception and versions\nshould generally mirror Bootstrap more directly going forward.\n", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/pypi/django-twitter-bootstrap", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/estebistec/django-twitter-bootstrap", "keywords": "django app staticfiles twitter bootstrap", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-twitter-bootstrap", "package_url": "https://pypi.org/project/django-twitter-bootstrap/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-twitter-bootstrap/", "project_urls": { "Download": "http://pypi.python.org/pypi/django-twitter-bootstrap", "Homepage": "https://github.com/estebistec/django-twitter-bootstrap" }, "release_url": "https://pypi.org/project/django-twitter-bootstrap/3.3.0/", "requires_dist": null, "requires_python": null, "summary": "Provides a Django app whose static folder contains Bootstrap assets", "version": "3.3.0" }, "last_serial": 1291495, "releases": { "2.2.2": [ { "comment_text": "", "digests": { "md5": "9f86d00785e8e82cb95f768489d59911", "sha256": "027a533fbc711e4bab6d612ee5d4a8de2074b8aed41636249bf7e06f3c075ccd" }, "downloads": -1, "filename": "django-twitter-bootstrap-2.2.2.tar.gz", "has_sig": false, "md5_digest": "9f86d00785e8e82cb95f768489d59911", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 72664, "upload_time": "2012-12-25T05:18:16", "url": "https://files.pythonhosted.org/packages/fc/26/b2b6027b52c229b615cb8f3498313b8682ec77b6d8f8d5acc5d629e5338a/django-twitter-bootstrap-2.2.2.tar.gz" } ], "2.2.2-1": [ { "comment_text": "", "digests": { "md5": "89e1e851e29992ac17be774b94ee372c", "sha256": "d4fb2556134a0cbc2b4e1be4cd436bc33e20196eeeee123c5e3075f7ead5bcae" }, "downloads": -1, "filename": "django-twitter-bootstrap-2.2.2-1.tar.gz", "has_sig": false, "md5_digest": "89e1e851e29992ac17be774b94ee372c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 70339, "upload_time": "2012-12-25T05:28:28", "url": "https://files.pythonhosted.org/packages/c3/15/c67bd2203f31752ca29045d2e62da4c8f6f23a32a2bdd541909d7e014fe2/django-twitter-bootstrap-2.2.2-1.tar.gz" } ], "2.3.0": [ { "comment_text": "", "digests": { "md5": "fc11cd5c3bbe19213eafff168421b093", "sha256": "97b5b131ab98def06a699e4d2d843d8d3d9a8d2514393e20183d82baee601f31" }, "downloads": -1, "filename": "django-twitter-bootstrap-2.3.0.tar.gz", "has_sig": false, "md5_digest": "fc11cd5c3bbe19213eafff168421b093", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 75735, "upload_time": "2013-03-24T05:05:11", "url": "https://files.pythonhosted.org/packages/25/c7/aa6823bf510242e22b9d2235c3793e8723ea68c55e21d22a5a0821ba31a4/django-twitter-bootstrap-2.3.0.tar.gz" } ], "2.3.1": [ { "comment_text": "", "digests": { "md5": "cd8a86690fc19306611e276e780fe0b5", "sha256": "e0afcfc3950c56bfe5800b11417e3d71a1368717776760a1776a01e70e488a25" }, "downloads": -1, "filename": "django-twitter-bootstrap-2.3.1.tar.gz", "has_sig": false, "md5_digest": "cd8a86690fc19306611e276e780fe0b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 75795, "upload_time": "2013-03-24T05:41:01", "url": "https://files.pythonhosted.org/packages/1c/28/e246b337933d9cb5c4aaca09b53fc45bd90978bcfab982235ec90c7d4eab/django-twitter-bootstrap-2.3.1.tar.gz" } ], "2.3.2": [ { "comment_text": "", "digests": { "md5": "d1c01b64bf107c989c4878484fe5f0a3", "sha256": "e65dd46a476d1910ca8ee20c8be25df012e47178fb0b913598eb8226d26ac417" }, "downloads": -1, "filename": "django-twitter-bootstrap-2.3.2.tar.gz", "has_sig": false, "md5_digest": "d1c01b64bf107c989c4878484fe5f0a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 75966, "upload_time": "2013-05-18T04:18:35", "url": "https://files.pythonhosted.org/packages/d3/a3/41a706b72d0dc66b01cd5a600f794ca66c0307b807f672c8cf17b4bcd669/django-twitter-bootstrap-2.3.2.tar.gz" } ], "3.0.0": [ { "comment_text": "", "digests": { "md5": "1352fdf03bf28ed95c2a62aae8ef581f", "sha256": "f7937a44c7d62a10d32efa4539a82a6f91f9b93aa7015fdc0bb4ab374de60862" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.0.0.tar.gz", "has_sig": false, "md5_digest": "1352fdf03bf28ed95c2a62aae8ef581f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 123023, "upload_time": "2013-09-02T05:03:40", "url": "https://files.pythonhosted.org/packages/71/3e/9e2530918cc1af071bfc79ef3b82013e2e482065edb2a1e8e05d5136cea6/django-twitter-bootstrap-3.0.0.tar.gz" } ], "3.0.0-rc1": [ { "comment_text": "", "digests": { "md5": "8a812c36189bed8603782cd7aead8a29", "sha256": "ba6985782e594459d0f53b333dd25bdd5c616475eaaf986d044e3df15a2f9115" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.0.0-rc1.tar.gz", "has_sig": false, "md5_digest": "8a812c36189bed8603782cd7aead8a29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45906, "upload_time": "2013-08-30T05:01:50", "url": "https://files.pythonhosted.org/packages/75/51/1a321eb83db2b339f494a48afc044cb61c10b6f3110763d759d6f542e021/django-twitter-bootstrap-3.0.0-rc1.tar.gz" } ], "3.0.0-rc2": [ { "comment_text": "", "digests": { "md5": "25de6066723207bc67c5c2cc8f4ef246", "sha256": "92a1b915e9f19f38500d27b58da548679dc08a0d6e0278413ea09bd7a1695b06" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.0.0-rc2.tar.gz", "has_sig": false, "md5_digest": "25de6066723207bc67c5c2cc8f4ef246", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 50365, "upload_time": "2013-09-02T03:50:26", "url": "https://files.pythonhosted.org/packages/48/3a/f045e138ecd48ca82461b8c5271055f6a806661acfa557da6b4a28b9ff24/django-twitter-bootstrap-3.0.0-rc2.tar.gz" } ], "3.0.1": [ { "comment_text": "", "digests": { "md5": "693841dacb130e2782a3b978fab159b9", "sha256": "866ce2a82f62bd5366a13012092015d243753f56e5df9c6566860df53a1dcd34" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.0.1.tar.gz", "has_sig": false, "md5_digest": "693841dacb130e2782a3b978fab159b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 144533, "upload_time": "2013-12-25T04:43:03", "url": "https://files.pythonhosted.org/packages/b9/a4/89648ecc9f9e8e15d011646449dc96d8b24ecced407d3b8b347f06f429d8/django-twitter-bootstrap-3.0.1.tar.gz" } ], "3.0.1-1": [ { "comment_text": "", "digests": { "md5": "bcf0c873fc97eac9c3c88f47fc63af1e", "sha256": "98fc0ce9653fb7222c58b788728d6e73149d209031f7c4fababb903425523998" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.0.1-1.tar.gz", "has_sig": false, "md5_digest": "bcf0c873fc97eac9c3c88f47fc63af1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 144552, "upload_time": "2013-12-25T04:52:54", "url": "https://files.pythonhosted.org/packages/c9/cf/9c4dd2c9c68fcf2c164a9815e17eba885ab0a0b88e9b957af72738d47564/django-twitter-bootstrap-3.0.1-1.tar.gz" } ], "3.0.1-2": [ { "comment_text": "", "digests": { "md5": "4c5548049c8da939b7669ae57555bd4b", "sha256": "b5d50fa42af0719e163cc5d9d7dc5d34b4925356eb6509f18af843b0d67818db" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.0.1-2.tar.gz", "has_sig": false, "md5_digest": "4c5548049c8da939b7669ae57555bd4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 144490, "upload_time": "2013-12-26T15:45:48", "url": "https://files.pythonhosted.org/packages/ba/6d/c9d5c3c17bd9786eeb4d8a76aa7040ce889b0041078e47fcc3efda1a9812/django-twitter-bootstrap-3.0.1-2.tar.gz" } ], "3.0.2": [ { "comment_text": "", "digests": { "md5": "b8ef5c40b997355c2dc98ea1a9828080", "sha256": "63dcd3299f095f6b9577f169dd813b446aba6a690badc0cdbe67ad8ac487daaa" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.0.2.tar.gz", "has_sig": false, "md5_digest": "b8ef5c40b997355c2dc98ea1a9828080", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 144585, "upload_time": "2013-12-26T06:15:00", "url": "https://files.pythonhosted.org/packages/81/c8/faf4a1dbdba6bd0b9dbf47361e0885bd3a275c94de19688ec0d1d898f0a3/django-twitter-bootstrap-3.0.2.tar.gz" } ], "3.0.3": [ { "comment_text": "", "digests": { "md5": "9f341896e82484afb316b6abb39c76c3", "sha256": "a5c9ce2b587837d3fe655d7ccfe680efbfd1fd6d8af3edadb945b9d66bedbcae" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.0.3.tar.gz", "has_sig": false, "md5_digest": "9f341896e82484afb316b6abb39c76c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 144161, "upload_time": "2013-12-26T06:36:03", "url": "https://files.pythonhosted.org/packages/04/54/15a7ad62d0b066760e7d2af433d0535c98359dfa18cac928ff3ce56ed1d5/django-twitter-bootstrap-3.0.3.tar.gz" } ], "3.1.0": [ { "comment_text": "", "digests": { "md5": "ae86ec1c3e081dc6a3738c222c40487e", "sha256": "3eabb3b44ee684db07a5770f2a889d63c36ff6359d028f6567d9e9109b2618d2" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.1.0.tar.gz", "has_sig": false, "md5_digest": "ae86ec1c3e081dc6a3738c222c40487e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 148612, "upload_time": "2014-02-06T03:37:10", "url": "https://files.pythonhosted.org/packages/8d/a1/197753a227ebd2aae708894360133934050199089ac64862cfcf4968a225/django-twitter-bootstrap-3.1.0.tar.gz" } ], "3.1.1": [ { "comment_text": "", "digests": { "md5": "66478522b62ce43a8822e971f623bde2", "sha256": "b67d47a4a032a5c2ce2efcca5d6e43c5d43de00707f1d4f6b604dd3bc331b387" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.1.1.tar.gz", "has_sig": false, "md5_digest": "66478522b62ce43a8822e971f623bde2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 148965, "upload_time": "2014-03-19T05:49:18", "url": "https://files.pythonhosted.org/packages/47/0d/b0d8cf9ebf39dd62cb56793a566ea9da3c4a1433e798d9474241ee74f6c9/django-twitter-bootstrap-3.1.1.tar.gz" } ], "3.2.0": [ { "comment_text": "", "digests": { "md5": "ddbd353e4e4e490a046c647925dc99d8", "sha256": "be5761b4df308682e4cd8a100750dfccfc2c08d95db7ef823a08e2500e8885e0" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.2.0.tar.gz", "has_sig": false, "md5_digest": "ddbd353e4e4e490a046c647925dc99d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 155328, "upload_time": "2014-09-13T20:40:10", "url": "https://files.pythonhosted.org/packages/a5/c6/327df45293b508e701bb0537434053e77e863faba5db760658af9f850c55/django-twitter-bootstrap-3.2.0.tar.gz" } ], "3.2.0-1": [ { "comment_text": "", "digests": { "md5": "67570a7b19a64ed539f8bcf7774cc13b", "sha256": "138cc4c530dfc24c05b8e708fa6e2958136916f8283c782acd85c9c5e549508b" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.2.0-1.tar.gz", "has_sig": false, "md5_digest": "67570a7b19a64ed539f8bcf7774cc13b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 155502, "upload_time": "2014-09-26T00:07:42", "url": "https://files.pythonhosted.org/packages/e4/b9/fd3925001e4b39ff10ab76824bdcbfcbf18326164207d9b2897571a75135/django-twitter-bootstrap-3.2.0-1.tar.gz" } ], "3.3.0": [ { "comment_text": "", "digests": { "md5": "74ae99cd6ad93e6a93003dc5ee5d789c", "sha256": "4e6084967251da930d353d0de73bcc1885c20a29551ce68ae12ac16ddba36079" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.3.0.tar.gz", "has_sig": false, "md5_digest": "74ae99cd6ad93e6a93003dc5ee5d789c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 156895, "upload_time": "2014-11-02T03:13:20", "url": "https://files.pythonhosted.org/packages/43/88/d50fc2efb3b8a72d192620fcb2879c81ebd6e5057c41a980d76bc02bc418/django-twitter-bootstrap-3.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "74ae99cd6ad93e6a93003dc5ee5d789c", "sha256": "4e6084967251da930d353d0de73bcc1885c20a29551ce68ae12ac16ddba36079" }, "downloads": -1, "filename": "django-twitter-bootstrap-3.3.0.tar.gz", "has_sig": false, "md5_digest": "74ae99cd6ad93e6a93003dc5ee5d789c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 156895, "upload_time": "2014-11-02T03:13:20", "url": "https://files.pythonhosted.org/packages/43/88/d50fc2efb3b8a72d192620fcb2879c81ebd6e5057c41a980d76bc02bc418/django-twitter-bootstrap-3.3.0.tar.gz" } ] }