semvec/pypi-packages huggingface dataset:
django-dynamic-formsets 0.0.8
A lightweight plugin for managing Django formsets with jQuery.
License: BSD
Keywords: django,formset,javascript

# django-dynamic-formsets

A lightweight plugin for managing Django formsets with jQuery.


## About this plugin

This [jQuery](http://jquery.com/) plugin helps you create more usable [Django](http://www.djangoproject.com/) formsets by allowing clients to add and remove forms on the client-side.

It was primarily developed by [Stanislaus Madueke](https://github.com/elo80ka), and re-packaged as a static Django app (with a couple shiny new enhancements and more docs) by [The Dallas Morning News](https://github.com/DallasMorningNews/).

This version of this plugin (like its predecessor) is available under the [BSD License]().

****


## Getting started

1.   Download this repo or install from PyPI:

    ```bash
    pip install django-dynamic-formsets
    ```

2.   Then add `dynamic_formsets` to your `INSTALLED_APPS` setting and run `python manage.py collectstatic`.

3.   You can now make your formsets dynamic by adding the following lines to a template:

    ```Django
    {% load static %}

    ...

    {% comment %}
        (Your templated DOM here, possibly something like this:)
    {% endcomment %}

    <form id="my-form" method="post" action="">
        {% csrf_token %}
        {{ formset.media }}
        {% for form in formset %}
            <div class="individual-form">
                {{ form.as_p }}
            </div>
        {% endfor %}
    </form>

    ...

    <script src="{% static "dynamic_formsets/jquery.formset.js" %}" type="text/javascript"> </script>

    <script type="text/javascript">
        $('.individual-form').formset();
    </script>
    ```

****


## Configuration

Once you've followed steps 1 to 3 above, you're ready to customize the formset-handling javascript that's now on your page.

Detailed information about all the settings you can change in the javascript will be added to this repo very soon.
bottle-streamline 1.0.post3
Python module writing class-based route handlers in bottle.
License: BSD
Keywords: bottle route class

=================
bottle-streamline
=================

.. image:: https://readthedocs.org/projects/bottle-streamline/badge/?version=latest
    :target: http://bottle-streamline.readthedocs.org/en/latest/?badge=latest
    :alt: Documentation Status
                
.. image:: https://readthedocs.org/projects/bottle-streamline/badge/?version=develop
    :target: http://bottle-streamline.readthedocs.org/en/develop/?badge=develop
    :alt: Development documentation Status


This project is a collection of classes for writing complex, modullar, and/or
reusable route handlers using `bottle <http://bottlepy.org>`_ web framework.

Even though 'complex route handlers' may seem like an oximoron, there may be
situations where support for multiple parameters are needed or where a simple
branching in the route handler code may completely change the logic of your 
route handler. If you find yourself running into this type of situation and
struggle to organize the code, you may find bottle-streamline is a good fit for
your project.

Quick example
=============

Example of a classic Hello world app::

    import bottle
    from streamline import RouteBase


    class Hello(BaseRoute):
        def get(self):
            return 'Hello world!'


    Hello.route('/')
    bottle.run()

Documentation
=============

You will find the complete documentation and tutorials `on ReadTheDocs
<http://bottle-streamline.readthedocs.org/>`_.