{ "info": { "author": "Matt Fox", "author_email": "matt@tansen.ca", "bugtrack_url": null, "classifiers": [], "description": "# This package is no longer distributed on PyPI.\n\nYou can now review and download packages at our own Python registry- [https://balto.baltorepo.com/open-source/python/packages/drf-form-bootstrap-4/](https://balto.baltorepo.com/open-source/python/packages/drf-form-bootstrap-4/)\n\n# drf-form-bootstrap-4\n\n[](https://travis-ci.org/mattfox/drf-form-bootstrap-4)\n\nBootstrap 4 templates for [Django REST Framework `render_form` tag](http://www.django-rest-framework.org/topics/html-and-forms/).\n\n## Requirements\n\nTested with Django 2.2, DRF 3.9, Python 3.6 & 3.5. Almost certainly works in earlier versions.\n\n## Installation\n\nFrom PyPI:\n\n```\npip install drf-form-bootstrap-4\n```\n\nAdd `drfformbootstrap4` to your `INSTALLED_APPS` setting.\n\n```\nINSTALLED_APPS = (\n ...\n 'drfformbootstrap4',\n)\n```\n\n## Usage\n\nLike the template packs in Django REST Framework, this supports three layouts:\n\n#### Vertical\n\n
\n\n\n#### Horizontal\n\n\n \n\n\n\n#### Inline\n\nNote that `inline` is less well-tested than the others, and at the moment the error states don't render properly. If this is a problem for you, [add a comment to this issue](https://github.com/mattfox/drf-form-bootstrap-4/issues/2).\n\n \n\n### Additional Options\n\nUse the `style` field on your serializer to change the appearance of a field.\n\nTo display a field as text instead of as a field:\n\n```\nstyle={'class': 'form-control-plaintext'}\n```\n\nFor inline checkboxes and radio buttons:\n\n```\nstyle={'inline': True}\n```\n\nPrepend/append text for inputs:\n\n```\nstyle={\n 'prepend': 'text to prepend',\n 'append': 'text to append',\n}\n```\n\n## Development\n\nPretty standard: fork this repo, make changes, make a GitHub pull request.\n\nThere are demo pages showing a variety of form fields and layouts. To use it, first install its dependencies:\n\n```\npip install -r requirements.txt\n```\n\nThen run the server:\n\n```\nmake runserver\n```\n\nWhen using this `runserver`, you don't need to install `drfformbootstrap4` into your virtualenv before seeing changes. However if you want to see your changes reflected in a different application using the same virtualenv, install it with:\n\n```\nmake install\n```\n\nBuilds are here: https://travis-ci.org/mattfox/drf-form-bootstrap-4\n\n## License\n\n© 2019 Matthew Fox\n\n[MIT](https://github.com/mattfox/drf-form-bootstrap-4/blob/master/LICENSE)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mattfox/drf-form-bootstrap-4", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "drf-form-bootstrap-4", "package_url": "https://pypi.org/project/drf-form-bootstrap-4/", "platform": "", "project_url": "https://pypi.org/project/drf-form-bootstrap-4/", "project_urls": { "Homepage": "https://github.com/mattfox/drf-form-bootstrap-4" }, "release_url": "https://pypi.org/project/drf-form-bootstrap-4/0.5.2/", "requires_dist": null, "requires_python": "", "summary": "Bootstrap 4 templates for Django Rest Framework `render_form` tag", "version": "0.5.2" }, "last_serial": 5753479, "releases": { "0.5.2": [ { "comment_text": "", "digests": { "md5": "75e08228d64dfbd69762c3d918cfb20d", "sha256": "47e0c306b391d59076bedef69eae1fbefccd56f09cd28c3da42e280027a9325e" }, "downloads": -1, "filename": "drf-form-bootstrap-4-0.5.2.tar.gz", "has_sig": false, "md5_digest": "75e08228d64dfbd69762c3d918cfb20d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10590, "upload_time": "2019-08-29T14:41:15", "url": "https://files.pythonhosted.org/packages/e5/34/48e5981c3695e67b9583b432cc2a89bfb45239765914f0a65444f83e8b47/drf-form-bootstrap-4-0.5.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "75e08228d64dfbd69762c3d918cfb20d", "sha256": "47e0c306b391d59076bedef69eae1fbefccd56f09cd28c3da42e280027a9325e" }, "downloads": -1, "filename": "drf-form-bootstrap-4-0.5.2.tar.gz", "has_sig": false, "md5_digest": "75e08228d64dfbd69762c3d918cfb20d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10590, "upload_time": "2019-08-29T14:41:15", "url": "https://files.pythonhosted.org/packages/e5/34/48e5981c3695e67b9583b432cc2a89bfb45239765914f0a65444f83e8b47/drf-form-bootstrap-4-0.5.2.tar.gz" } ] }