{"id":18041560,"url":"https://github.com/bashu/django-charsleft-widget","last_synced_at":"2025-04-09T19:16:25.037Z","repository":{"id":57419270,"uuid":"11889396","full_name":"bashu/django-charsleft-widget","owner":"bashu","description":"👻 Custom widget that limits the number of characters that can be entered in a textarea field","archived":false,"fork":false,"pushed_at":"2021-12-02T06:31:40.000Z","size":213,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-03-23T21:11:16.231Z","etag":null,"topics":["django","widgets"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bashu.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","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":"2013-08-05T03:25:45.000Z","updated_at":"2021-12-10T03:53:46.000Z","dependencies_parsed_at":"2022-09-02T20:21:01.492Z","dependency_job_id":null,"html_url":"https://github.com/bashu/django-charsleft-widget","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-charsleft-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-charsleft-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-charsleft-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-charsleft-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bashu","download_url":"https://codeload.github.com/bashu/django-charsleft-widget/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247943717,"owners_count":21022469,"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":["django","widgets"],"created_at":"2024-10-30T16:10:38.042Z","updated_at":"2025-04-09T19:16:25.010Z","avatar_url":"https://github.com/bashu.png","language":"Python","readme":"django-charsleft-widget\n=======================\n\n.. image:: https://img.shields.io/pypi/v/django-charsleft-widget.svg\n    :target: https://pypi.python.org/pypi/django-charsleft-widget/\n\n.. image:: https://img.shields.io/pypi/dm/django-charsleft-widget.svg\n    :target: https://pypi.python.org/pypi/django-charsleft-widget/\n\n.. image:: https://img.shields.io/github/license/bashu/django-charsleft-widget.svg\n    :target: https://pypi.python.org/pypi/django-charsleft-widget/\n\n.. image:: https://img.shields.io/travis/bashu/django-charsleft-widget.svg\n    :target: https://travis-ci.com/github/bashu/django-charsleft-widget/\n\ndjango-charsleft-widget is a custom widget that limits the number of characters that can be entered in a textarea field.\n\n.. raw:: html\n\n    \u003cp align=\"center\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/bashu/django-charsleft-widget/develop/showcase.gif\"\u003e\n    \u003c/p\u003e\n\nInstallation\n------------\n\nFirst install the module, preferably in a virtual environment. It can be installed from PyPI:\n\n.. code-block:: bash\n\n    pip install django-charsleft-widget\n\nExternal dependencies\n~~~~~~~~~~~~~~~~~~~~~\n\n* jQuery - this is not included in the package since it is expected\n  that in most scenarios this would already be available.\n\nSetup\n-----\n\nAdd ``charsleft_widget`` to  ``INSTALLED_APPS``:\n\n.. code-block:: python\n\n    INSTALLED_APPS += (\n        'charsleft_widget',\n    )\n\nand just include ``charsleft_widget`` templates\n\n.. code-block:: html+django\n\n    {% include \"charsleft_widget/charsleft_widget_css.html\" %} {# Before the closing head tag #}\n    {% include \"charsleft_widget/charsleft_widget_js.html\" %} {# Before the closing body tag #}\n\nWhen deploying on production server, don't forget to run:\n\n.. code-block:: shell\n\n    python manage.py collectstatic\n\nUsage\n-----\n\nAll you need now is to import ``ClearableInput`` class and override\nfield's widget, for example:\n\n.. code-block:: python\n\n    from django.forms.fields import CharField\n\n    from charsleft_widget import CharsLeftArea\n\n    class Form(forms.Form):\n\n        field = CharField(max_length=128, widget=CharsLeftArea)\n\nPlease see ``example`` application. This application is used to\nmanually test the functionalities of this package. This also serves as\na good example.\n\nYou need only Django 1.4 or above to run that. It might run on older\nversions but that is not tested.\n\nContributing\n------------\n\nIf you like this module, forked it, or would like to improve it, please let us know!\nPull requests are welcome too. :-)\n\nLicense\n-------\n\n``django-charsleft-widget`` is released under the BSD license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashu%2Fdjango-charsleft-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbashu%2Fdjango-charsleft-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashu%2Fdjango-charsleft-widget/lists"}