{ "info": { "author": "Edison KOO", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=======================\nDjango Material Widgets\n=======================\n\nEasily convert your Django Forms and ModelForms to use widgets styled with `Material Components for the Web`_.\n\n|status| |docs| |pypi| |pyversion| |license|\n\n|screenshot|\n\n\nQuick Start\n-----------\n#) Install Django Material Widgets::\n\n pip install django-material-widgets\n\n#) Add ``material_widgets`` to ``INSTALLED_APPS`` in your ``settings.py``::\n\n INSTALLED_APPS = [\n ...\n 'material_widgets',\n ]\n\n#) Edit your ``forms.py``:\n\n - Import ``material_widgets.widgets.MaterialForm`` and/or ``material_widgets.widgets.MaterialModelForm``::\n\n from material_widgets import MaterialForm, MaterialModelForm\n\n - Change forms using ``django.forms.Form`` and/or ``django.forms.ModelForm`` to ``MaterialForm`` or ``MaterialModelForm`` respectively::\n\n class MyForm(forms.Form): \u21e8 class MyForm(MaterialForm):\n\n class MyModelForm(forms.ModelForm): \u21e8 class MyModelForm(MaterialModelForm):\n\n#) Edit your HTML templates:\n\n - Change ``{{ form }}`` template variables to ``{{ form.as_components }}``::\n\n {{ form.as_p }} \u21e8 {{ form.as_components }}\n\n\n - Add ``{{ form.media.css }}`` to your ``
`` tag::\n\n \n {{ form.media.css }}\n \n\n - Add the ``mdc-typography`` CSS class to your ```` tag::\n\n \n\n - Add ``{{ form.media.js }}`` to the bottom of your ```` tag::\n\n \n ...\n\n {{ form.media.js }}\n \n\n - (Optional) Add stylesheet links::\n\n \n \n \n \n\n\nDemo\n----\nhttps://ooknosi.github.com/django_material_widgets\n\nTo view the demo locally at ``http://localhost:8000``:\n\n.. code:: bash\n\n git clone https://github.com/ooknosi/django_material_widgets.git\n cd django_material_widgets/src\n python manage.py migrate --settings=demo.settings\n python manage.py runserver --settings=demo.settings\n\n\nDocumentation\n-------------\nhttp://django-material-widgets.readthedocs.io/en/latest/\n\n\n.. _Material Components for the Web: https://material.io/components/web/\n\n.. |screenshot| image:: screenshot.png\n :width: 100%\n :alt: Click to view demo\n :target: https://ooknosi.github.com/django_material_widgets\n\n.. |status| image:: https://img.shields.io/pypi/status/django-material-widgets.svg\n :target: https://pypi.python.org/pypi/django-material-widgets\n\n.. |docs| image:: https://img.shields.io/readthedocs/django-material-widgets.svg\n :target: http://django-material-widgets.readthedocs.io/en/latest/\n\n.. |pypi| image:: https://img.shields.io/pypi/v/django-material-widgets.svg\n :target: https://pypi.python.org/pypi/django-material-widgets\n\n.. |pyversion| image:: https://img.shields.io/pypi/pyversions/django-material-widgets.svg\n :target: https://pypi.python.org/pypi/django-material-widgets\n\n.. |license| image:: https://img.shields.io/pypi/l/django-material-widgets.svg\n :target: https://github.com/ooknosi/django_material_widgets/blob/master/LICENSE", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ooknosi/django_material_widgets", "keywords": "django material widgets forms modelforms", "license": "Apache Software License", "maintainer": "", "maintainer_email": "", "name": "django-material-widgets", "package_url": "https://pypi.org/project/django-material-widgets/", "platform": "", "project_url": "https://pypi.org/project/django-material-widgets/", "project_urls": { "Homepage": "https://github.com/ooknosi/django_material_widgets" }, "release_url": "https://pypi.org/project/django-material-widgets/1.0.0b3/", "requires_dist": null, "requires_python": "", "summary": "Django widgets styled with Material Components for the Web.", "version": "1.0.0b3" }, "last_serial": 3353886, "releases": { "1.0.0b3": [ { "comment_text": "", "digests": { "md5": "322e80b328e8301681748d3d71d38e5c", "sha256": "5fb1e54968ea9605895697e67c4785ea95be342ba5c84f347136af6cd3f263d2" }, "downloads": -1, "filename": "django-material-widgets-1.0.0b3.tar.gz", "has_sig": false, "md5_digest": "322e80b328e8301681748d3d71d38e5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 452843, "upload_time": "2017-11-22T01:40:10", "url": "https://files.pythonhosted.org/packages/39/44/368c7e18622fe790fd9ccebd84371ff63cc9d3ff11d2e9319d9b7f5a5c88/django-material-widgets-1.0.0b3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "322e80b328e8301681748d3d71d38e5c", "sha256": "5fb1e54968ea9605895697e67c4785ea95be342ba5c84f347136af6cd3f263d2" }, "downloads": -1, "filename": "django-material-widgets-1.0.0b3.tar.gz", "has_sig": false, "md5_digest": "322e80b328e8301681748d3d71d38e5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 452843, "upload_time": "2017-11-22T01:40:10", "url": "https://files.pythonhosted.org/packages/39/44/368c7e18622fe790fd9ccebd84371ff63cc9d3ff11d2e9319d9b7f5a5c88/django-material-widgets-1.0.0b3.tar.gz" } ] }