{"id":13682043,"url":"https://github.com/dyve/django-bootstrap-toolkit","last_synced_at":"2025-04-30T06:33:32.456Z","repository":{"id":57419141,"uuid":"2482244","full_name":"dyve/django-bootstrap-toolkit","owner":"dyve","description":"Bootstrap support for Django projects","archived":true,"fork":false,"pushed_at":"2018-07-06T07:24:26.000Z","size":241,"stargazers_count":1028,"open_issues_count":6,"forks_count":294,"subscribers_count":106,"default_branch":"master","last_synced_at":"2024-11-07T17:58:19.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyve.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-09-29T13:54:43.000Z","updated_at":"2024-10-23T00:52:42.000Z","dependencies_parsed_at":"2022-09-03T09:50:19.236Z","dependency_job_id":null,"html_url":"https://github.com/dyve/django-bootstrap-toolkit","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyve%2Fdjango-bootstrap-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyve%2Fdjango-bootstrap-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyve%2Fdjango-bootstrap-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyve%2Fdjango-bootstrap-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyve","download_url":"https://codeload.github.com/dyve/django-bootstrap-toolkit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224201837,"owners_count":17272650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T13:01:39.649Z","updated_at":"2024-11-12T01:30:54.577Z","avatar_url":"https://github.com/dyve.png","language":"JavaScript","readme":"Django Toolkit for integration with Bootstrap v2\n================================================\n\nThe easiest way to use Bootstrap v2 in your Django project. What is Bootstrap? You can find out all about it here: http://getbootstrap.com\n\n\nThis project is retired\n-----------------------\n\nThe time for development on Bootstrap v2 has passed. This app is provided 'as is', and will not be updated.\n\nEveryone using Django and Bootstrap is encouraged to upgrade to `django-bootstrap3`. You can find it at https://github.com/dyve/django-bootstrap3.\n\n\nInstallation\n------------\n1. Install using pip:\n\n        pip install django-bootstrap-toolkit\n\n2. Add to INSTALLED_APPS:\n\n        'bootstrap_toolkit',\n\nAlternatively, you can add `django-bootstrap-toolkit` to your requirements.txt.\n\nIf you want to hack django-bootstrap itself, clone this repo and call `pip install -e .`.\n\nUse in templates\n----------------\n\n    {% load bootstrap_toolkit %}\n\n    # Using a filter\n\n    \u003cform action=\"/url/to/submit/\" method=\"post\"\u003e\n        {% csrf_token %}\n        {{ form|as_bootstrap }}\n        \u003cdiv class=\"form-actions\"\u003e\n            \u003cbutton type=\"submit\" class=\"btn btn-primary\"\u003eSubmit\u003c/button\u003e\n        \u003c/div\u003e\n    \u003c/form\u003e\n\n    # Using template tags\n\n    \u003cform action=\"/url/to/submit/\" method=\"post\" class=\"form\"\u003e\n        {% csrf_token %}\n        {% bootstrap_form form layout=\"vertical\" %}\n        \u003cdiv class=\"form-actions\"\u003e\n            \u003cbutton type=\"submit\" class=\"btn btn-primary\"\u003eSubmit\u003c/button\u003e\n        \u003c/div\u003e\n    \u003c/form\u003e\n\nUse in forms\n------------\n\n    class TestForm(forms.Form):\n        date = forms.DateField(\n            widget=BootstrapDateInput(),\n        )\n        title = forms.CharField(\n            max_length=100,\n            help_text=u'This is the standard text input',\n        )\n        uneditable = forms.CharField(\n            max_length=100,\n            help_text=u'I am uneditable and you cannot enable me with JS',\n            initial=u'Uneditable',\n            widget=BootstrapUneditableInput()\n        )\n        prepended = forms.CharField(\n            max_length=100,\n            help_text=u'I am prepended by a P',\n            widget=BootstrapTextInput(prepend='P'),\n        )\n\nMore examples\n-------------\n\nSee Django project `demo_project/demo_app` for more examples.\n\nTODO\n----\n\n- Create a more easy way to customize BootstrapDateInput\n\n\nQuestions\n---------\n\nDo you have a question about the usage of this toolkit in your Django project? Please ask it on StackOverflow.com so others can help out and/or learn. Label your question django-bootstrap-toolkit if possible.\n\nhttp://stackoverflow.com/\n\nBugs and requests\n-----------------\n\nIf you have found a bug or a request for additional functionality, please use the issue tracker on GitHub.\n\nhttps://github.com/dyve/django-bootstrap-toolkit/issues\n\nAbout\n-----\n\ndjango-bootstrap-toolkit is written by Dylan Verheul (dylan@dyve.net).\n\nHistory\n-------\n\nWhen building my first Django project with Bootstrap I went looking for available open source applications that connected Django and Bootstrap.\n\nI found  https://github.com/tzangms/django-bootstrap-form. The approach to template tags and filters seemed right, but Bootstrap does so much more than just forms.\n\nThis is how `django-bootstrap-toolkit` started. I used ideas from other Django apps. The code was started from scratch.\n\nLicense\n-------\n\nYou can use this under Apache 2.0. See LICENSE file for details.\n\nThanks\n------\n\n* to Twitter, @fat and @mdo for building and releasing Bootstrap\n* to the Django community for Django\n* to the authors of django-bootstrap-form for the inspiration\n* to Stefan Petre and Andy Rowles for the datepicker https://github.com/eternicode/bootstrap-datepicker\n","funding_links":[],"categories":["JavaScript","Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyve%2Fdjango-bootstrap-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyve%2Fdjango-bootstrap-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyve%2Fdjango-bootstrap-toolkit/lists"}