Saravanan666/pypi-org huggingface dataset:
Package: django-bootstrap-form-horizontal
This is set of form templates that implement a bootstrap “horizontal” style for
Django forms.  Handles all default field types, including a nicePikadaywrapper for date time fields.Installation:pip install django-bootstrap-form-horizontalAdd toINSTALLED_APPS:INSTALLED_APPS = (
     ...
     "bootstrap_form_horizontal",
     ...
)Usage:{% include "bootstrap_form_horizontal.html" with form=myform %}The template accepts the following context:form: The form to render.submit: The text for a submit button with classbtnbtn-primary.  If not specified, no submit button is rendered.wrap: If not 0, will wrap form with<formmethod='post'action=''class='form-horizontal'>{%csrf_token %} ... </form>. Default:TrueIf you specifywrap=0, the form will be rendered without wrapping, and you must provide your ownclass='form-horizontal'wrapper.label_class: The grid class(es) to use on label elements. Default:col-sm-4.field_class: The grid class(es) to use on field elements. Default:col-sm-8.To render properly, you must include various css/js. For convenience, vendored
bootstrap is included here – though you probably are already loading it in
your project if you’re interested in this app:<!-- Bootstrap -->
<link rel='stylesheet' type='text/css' href='{{ STATIC_URL }}bootstrap_form_horizontal/vendor/bootstrap/css/bootstrap.css' />
<script type='text/javascript' src='{{ STATIC_URL }}bootstrap_form_horizontal/vendor/bootstrap/js/bootstrap.min.js'></script>

<!-- Pikaday -->
<link rel='stylesheet' type='text/css' href='{{ STATIC_URL }}bootstrap_form_horizontal/vendor/pikaday/css/pikaday.css' />
<script type='text/javascript' src='{{ STATIC_URL }}bootstrap_form_horizontal/vendor/pikaday/pikaday.js'></script>
<script type='text/javascript' src='{{ STATIC_URL }}bootstrap_form_horizontal/datewidgets.js'></script>ExamplesWrap with form, and include submit button:{% include "bootstrap_form_horizontal.html" with form=myform submit="Send it in" %}Do your own form wrapping:<form method='post' class='form-horizontal' action='something'>{% csrf_token %}
    {% include "bootstrap_form_horizontal.html" with form=myform wrap=0 %}
    <input type='submit' value='Go!' />
</form>Change the responsive column classes:{% include "bootstrap_form_horizontal.html" with label_class='col-sm-2 col-xs-4' field_class='col-xs-10 col-sm-8' %}Rolling your own form template?_bootstrap_form_horizontal_field.html: renders a single label/field pair.  Expectsfieldas context; also acceptslabel_classandfield_classas above._bootstrap_form_horizontal_non_field_errors.html: Displays non-field errors wrapped in bootstrap error classes.  Expectsformas context; acceptslabel_classandfield_class.SourceFile issues, download, etc. athttps://github.com/yourcelf/django-bootstrap-form-horizontal.git.
Package: django-bootstrap-forms
Django Form wrapper for Twitter-Bootstrap=========================================http://twitter.github.com/bootstrapInstallation------------1. Install using pip:pip install -e git+git://github.com/earle/django-bootstrap.git#egg=bootstrap2. Add to INSTALLED_APPS:'bootstrap',Usage-----from bootstrap.forms import BootstrapForm, Fieldsetclass LoginForm(BootstrapForm):class Meta:layout = (Fieldset("Please Login", "username", "password", ),)username = forms.CharField(max_length=100)password = forms.CharField(widget=forms.PasswordInput(), max_length=100)If you want to use the Bootstrap Form wrapper on a built-in form, suchas those in `django.contrib.auth.forms` then you can use the mixinclass.from django.contrib.auth.forms import PasswordChangeFormfrom bootstrap.forms import BootstrapMixin, Fieldsetclass BootstrapPasswordChangeForm(BootstrapMixin, PasswordChangeForm):class Meta:layout = (Fieldset("Change your password","old_password", "new_password1", "new_password2"),When using the mixin directly it must be the first class your forminherits from.Template Usage--------------<form action="/login/" method="post" class="form-horizontal">{{ form }}<div class="form-actions"><button type="submit" class="btn btn-primary">Login</button></div></form>Example Screenshot------------------![Example Form](http://i.imgur.com/lJEok.png)TODO----Add field_* templates, and corresponding Widgets, for the unique TwitterBootstrap UI elements:* prependedtext* prependedcheckbox* appendedcheckbox* daterange* optionlistLICENSE &amp; COPYRIGHT-----------------------Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.
Package: django-bootstrap-form-tkliuxing
=====================Django bootstrap form=====================.. image:: https://badge.fury.io/py/django-bootstrap-form.png:alt: PyPI version:target: https://pypi.python.org/pypi/django-bootstrap-form.. image:: https://travis-ci.org/tzangms/django-bootstrap-form.png?branch=master:target: https://travis-ci.org/tzangms/django-bootstrap-form.. image:: https://coveralls.io/repos/tzangms/django-bootstrap-form/badge.png?branch=master:target: https://coveralls.io/r/tzangms/django-bootstrap-form?branch=masterTwitter Bootstrap for Django Form.A simple Django template tag to work with `Bootstrap <http://getbootstrap.com/>`_Usage======Add "bootstrapform" to your INSTALLED_APPS.At the top of your template load in our template tags::{% load bootstrap %}Then to render your form::<form role="form"><legend>Form Title</legend>{% csrf_token %}{{ form|bootstrap }}<div class="form-group"><button type="submit" class="btn btn-primary">Submit</button></div></form>You can also set class="form-vertical" on the form element.To use class="form-inline" on the form element, also change the "|boostrap" template tag to "|bootstrap_inline".It is also possible to create a horizontal form. The form class and template tag are both changed, and you will also need slightly different CSS around the submit button::<form class="form-horizontal"><legend>Form Title</legend>{% csrf_token %}{{ form|bootstrap_horizontal }}<div class="form-group"><div class="col-sm-10 col-sm-offset-2"><button type="submit" class="btn btn-primary">Submit</button></div></div></form>Demo=====Checkout this `Demo site <http://django-bootstrap-form.herokuapp.com/>`_ to see it in action.
Package: django-bootstrap-markdown
# Django Bootstrap Markdown Editor## A beautiful Markdown editor with a side by side preview[![Build Status](http://img.shields.io/travis/aj-may/django-bootstrap-markdown.svg)](https://travis-ci.org/aj-may/django-bootstrap-markdown)[![Coverage Status](http://img.shields.io/coveralls/aj-may/django-bootstrap-markdown/master.svg)](https://coveralls.io/r/aj-may/django-bootstrap-markdown)[![Code Climate](http://img.shields.io/codeclimate/github/aj-may/django-bootstrap-markdown.svg)](https://codeclimate.com/github/aj-may/django-bootstrap-markdown)[![License](http://img.shields.io/pypi/l/django-bootstrap-markdown.svg)](https://github.com/aj-may/django-bootstrap-markdown/blob/master/LICENSE.md)[![Version](http://img.shields.io/pypi/v/django-bootstrap-markdown.svg)](https://pypi.python.org/pypi/django-bootstrap-markdown)[![PyPI Downloads](http://img.shields.io/pypi/dm/django-bootstrap-markdown.svg)](https://pypi.python.org/pypi/django-bootstrap-markdown)[![GitTip](http://img.shields.io/gittip/aj_may.svg)](https://www.gittip.com/aj_may/)An extension of the Django Textarea widget made for editing [Markdown](http://daringfireball.net/projects/markdown/) with a live preview.![Example](http://thegoods.aj7may.com/content/images/2013/Dec/Screen_Shot_2013_12_21_at_2_39_47_PM.png)### Install:`> pip install django-bootstrap-markdown`### Usage:* Add `django-bootstrap-markdown` to the installed apps of your Django Project* Instead of using the django `Textarea` widget use the `MarkdownInput`* Be sure to include the form's required media in the template. _ie._ `{{ form.media }}`* Also be sure to include [Twitter Bootstrap](http://getbootstrap.com/)* Include the markdown urls:_urls.py_urlpatterns = patterns('',...url(r'^markdown/', include('django_bootstrap_markdown.urls')),...)### Example:_forms.py_from django import formsfrom django_bootstrap_markdown.widgets import MarkdownInputclass PostForm(forms.Form):title = forms.CharField()markdown = forms.CharField( widget=MarkdownInput )
Package: django-bootstrap-mega
Django Form wrapper for Twitter-Bootstrap=========================================http://twitter.github.com/bootstrapInstallation------------1. Install using pip:pip install -e git+git://github.com/earle/django-bootstrap.git#egg=bootstrap2. Add to INSTALLED_APPS:'bootstrap',Usage-----from bootstrap.forms import BootstrapForm, Fieldsetclass LoginForm(BootstrapForm):class Meta:layout = (Fieldset("Please Login", "username", "password", ),)username = forms.CharField(max_length=100)password = forms.CharField(widget=forms.PasswordInput(), max_length=100)If you want to use the Bootstrap Form wrapper on a built-in form, suchas those in `django.contrib.auth.forms` then you can use the mixinclass.from django.contrib.auth.forms import PasswordChangeFormfrom bootstrap.forms import BootstrapMixin, Fieldsetclass BootstrapPasswordChangeForm(BootstrapMixin, PasswordChangeForm):class Meta:layout = (Fieldset("Change your password","old_password", "new_password1", "new_password2"),When using the mixin directly it must be the first class your forminherits from.Template Usage--------------<form action="/login/" method="post" class="form-horizontal">{{ form }}<div class="form-actions"><button type="submit" class="btn btn-primary">Login</button></div></form>Example Screenshot------------------![Example Form](http://i.imgur.com/lJEok.png)TODO----Add field_* templates, and corresponding Widgets, for the unique TwitterBootstrap UI elements:* prependedtext* prependedcheckbox* appendedcheckbox* daterange* optionlistLICENSE &amp; COPYRIGHT-----------------------Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.
Package: django-bootstrap-navbar
django-bootstrap-navbarA code based navbar with great ambitions.Usagedjango-bootstrap-navbar lets you create a bootstrap 4 navbar with a Python class. It then takes care of setting the active class on the appropriate link based on the current path.InstallThe library is available on PyPi.pipinstalldjango-bootstrap-navbarOnce you have created a navbar class there are two ways of making it available in your template context:Using the provided context processorBOOTSTRAP_NAVBAR="showcase.navbar:ExampleNavBar"TEMPLATES=[{"BACKEND":"django.template.backends.django.DjangoTemplates",..."context_processors":["django.template.context_processors.debug",..."bootstrap_navbar.navbars.context_processors.navbar",]},}]Using the provided mixinclassContextProcessorView(BootstrapNavBarViewMixin,TemplateView):template_name="index.html"navbar_class=AppNavBarFinally the navbar can be rendered within your templates by calling the navbar.render method.{{ navbar.render }}A fullexampleis available within the repo.
Package: django-bootstrap-navtags
# django-bootstrapnavtagsNavigation templatetags for django with twitter bootstrap.## InstallationIf you want to install the latest stable release from PyPi:$ pip install django-bootstrap-navtagsIf you want to install the latest development version from GitHub:$ pip install -e git://github.com/noxan/django-bootstrap-navtags#egg=django-bootstrapnavtagsAdd `bootstrapnavtags` to your `INSTALLED_APPS`:INSTALLED_APPS = (...'bootstrapnavtags',...)Enable the `django.core.context_processors.request` by adding it to your settings.TEMPLATE_CONTEXT_PROCESSORS = ('django.contrib.auth.context_processors.auth','django.core.context_processors.debug','django.core.context_processors.i18n','django.core.context_processors.media','django.core.context_processors.static','django.core.context_processors.tz','django.contrib.messages.context_processors.messages','django.core.context_processors.request',)Default settings value of django for context processors can be found at: https://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors## How to useFirst make sure to load the templatetag via `{% load bootstrapnavtags %}` in your template.Then insert navigation entries into your template as it pleases you:<ul class="nav">{% navitem 'Home' 'home' %}{% navitem 'Profile' 'users:profile' %}</ul>
Package: django-bootstrapped
Bootstrapped is a reusable Django application to quickly integrate the Bootstrap toolkit from Twitter.  It’s a
collection of the bootstrap toolkit files and template tags to display them.This application depends on django.contrib.staticfiles.No files from Twitter’s Bootstrap toolkit have been modified and retain their Apache 2.0 license.Note: This app only works on Django 1.3 and newer.Installationpip install django-bootstrappedConfigurationAdd thebootstrappeddirectory to your Python path.Ensuredjango.contrib.staticfilesis added to yourINSTALLED_APPSsetting.Ensuredjango.contrib.staticfilesis configured properly.Addbootstrappedto yourINSTALLED_APPSsetting.Runmanage.py collectstaticto copy the Twitter Bootstrap toolkit files to your static directory.Template UsageThis application exposes a few template tags for including the Bootstrap toolkit files.Load the template tags before usage:{% load bootstrap %}`bootstrap_css`This tag renders the link tag for the bootstrap.min.css file.  It will render the un-minified version if
settings.TEMPLATE_DEBUG is set to True:{% bootstrap_css %}Output:<link rel="stylesheet" type="text/css" href="/static/bootstrap.css">`bootstrap_js`The Bootstrap toolkit provides some javascript love (http://twitter.github.com/bootstrap/#javascript) that is
compatible with jQuery and Ender.  This tag renders the appropriate script include tag for each plugin defined.  The tag
does not include jQuery or Ender, that’s up to you:{% bootstrap_js modal alerts dropdown %}Output:<script src="bootstrap-alerts.js" type="text/javascript"></script>
<script src="bootstrap-dropdown.js" type="text/javascript"></script>
<script src="bootstrap-modal.js" type="text/javascript"></script>Note: The popover javascript file has a dependency on the twipsy file.  If you add popover to the list and forget to add twipsy, the tag will do it for you.Alternatively, you may just want to include all of the scripts.  If so, just useallfor the tag arguments:{% bootstrap_js all %}`bootstrap_custom_less`You may want to customize the output of the bootstrap.css using Less (http://lesscss.org/).  Bootstrap was built from
Preboot, an open-source pack of mixins and variables to be used in conjunction with Less, a CSS preprocessor for faster
and easier web development.  This tag accepts an argument for a file path somewhere in your /static/ root directory and
outputs a script tag for it:{% bootstrap_custom_less "lib/bootstrap_custom.less" %}Output:<link rel="stylesheet/less" type="text/css" href="/static/lib/bootstrap_custom.less" media="all">
<script src="/static/js/less-1.1.5.min.js" type="text/javascript"></script>
Package: django-bootstrapper
Django BootstrapperThis is a simple django project generator, it uses django default command and complete the schema generating a full application ready to use, including base, authentication, and template_base applications.The main idea behind this projects is to automate some labors when we create projects.UsageFirst create a new environment# For pip userspython-mvenvmy_custom_environment# For conda userscondacreate--namemy_custom_environmentNow install django-bootstrapperpipinstalldjango-bootstrapperNow just executedjango-bootstrapper.pyand follow the rulesThe project folder structure will be:project_folder
├── applications
│   ├── authentication (Authentication app from https://github.com/contraslash/authentication-django)
│   ├── base_template (Base template from https://github.com/contraslash/template_cdn_bootstrap)
│   └── __init__.py
├── base (base from https://github.com/contraslash/base-django)
├── manage.py
└── project_name
    ├── __init__.py
    ├── settings.py
    ├── urls.py
    └── wsgi.pyThe project is git submodule based, and creates submodules forauthentication,base_templateandbase,
all open source projects  created by contraslash.Also we recommend to useDjango Crud Generatorto create CRUD
automatically.Our main goal is to create a project with a structure that we can extend using templates and existing files.If you want to modify and add to your tree any submodule, we recommend to followthis questionTest your changesWe want to include test on this suite so, to test your changes usepytestCompile locallypythonsetup.pysdist
pythonsetup.pyinstall
Package: django-bootstrap-select
A Django wrapper for the Bootstrap Select libraryDocumentationThe full documentation is athttps://django-bootstrap-select.readthedocs.io.QuickstartNeed to render an image in a select box?Turn this:Into this:Install Django Bootstrap Select:pip install django-bootstrap-selectAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'bootstrap_select.apps.BootstrapSelectConfig',...)Using it in a form:defget_choices():choices=(('face.jpg',escape('<img src="path-to-face.jpg"/>'),)returnchoicesclassIconForm(forms.Form):icon=forms.URLField(widget=BootstrapSelect(choices=get_choices()))FeaturesRenders labels from form choices ascustom-content.Renders tokens from form choices forlive-search.Running TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2017-08-20)First release on PyPI.
Package: django-bootstrap-static
Bootstrap and optional Font Awesome static files ready for the picking.Also ships the latest jQuery compatible with Bootstrap, for optional inclusion.Installpipinstalldjango-bootstrap-staticConfigurationTo pickup Bootstrap static files, simply include'bootstrap', and optionally'fontawesome', in yourINSTALLED_APPS:INSTALLED_APPS=[# ...'bootstrap','fontawesome',]Then you can include CSS and JavaScript as usual static resources, e.g. using{% static'...'%}in your base template as follows:{%loadstatic%}<head>
    <link rel="stylesheet" href="{%static'bootstrap/css/bootstrap.min.css'%}">
    <script defer src="{%static'fontawesome/js/all.min.js'%}"></script>
</head>
<body>
    ...
    <script src="{%static'bootstrap/js/jquery.min.js'%}"></script>
    <script src="{%static'bootstrap/js/bootstrap.bundle.min.js'%}"></script>
</body>Note that in the above code sample we use SVG powered Font Awesome, as
recommended by their docs.  You can use Font Awesome the classic way by
replacing the<script...>tag in the<head>section above by:<link rel="stylesheet" href="{%static'fontawesome/css/all.min.css'%}">If you don’t use Bootstrap features that requirePopper.js(e.g. dropdowns,
popovers, tooltips) you can includebootstrap.min.jsinstead of the bundle
to save a few kilobytes of bandwidth.More details on integration may be available from each of the two projects:https://getbootstrap.com/docs/4.0/getting-started/introduction/https://fontawesome.com/get-started(Upgrading from Version 4 of Font Awesome)ContributionOccasionally, I forget to update this package with new bootstrap updates.
Please feel free to submit a PR.Sources and ProceduresBootstrap: (all files from dist package)Bootstrap website / Download-> drop intobootstrap/static/bootstrap/jQuery: (compressed, uncompressed, map)jQuery website / Download-> rename and mix intobootstrap/static/bootstrap/js/Pick the latest version denoted as a dependency inbower.json(seeDependencies).Font Awesome: (content of theon-server/folder only)Font Awesome website / Download Free-> drop intofontawesome/static/fontawesome/ReleasesTo stay aligned with the Bootstrap release schedule we will keep version
numbers of this app in sync with the bootstrap Major.Minor.Revision changes
(semver).  The additional version number will be added at the end to denote
a new change within this package itself, e.g.django-bootstrap-static==3.3.1.1== Bootstrap3.3.1with an additional
package change.
Package: django-bootstrap-staticfiles
This package provides aDjangoapp whosestaticfolder contains the
compiled assets ofBootstrap.Each Bootstrap version will be tagged accordingly.SetupInstall the app:pip install django-bootstrap-staticfilesInlude it in your Django project:# settings.py:

INSTALLED_APPS = (
    ...
    'django_bootstrap_staticfiles',
    ...
)Make suredjango.contrib.staticfiles.finders.AppDirectoriesFinderis in
your list ofSTATICFILES_FINDERS.UsageIf you’re not using an asset manager, you can just include them as usual in
your site templates.:{% load staticfiles %}
...
<script type="text/javascript" src="{% static 'js/bootstrap.min.js' %}"></script>
...Copyright and licenseCopyright 2013 55 MinutesLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: django-bootstrap-submenu
django-bootstrap-submenu=========================`bootstrap-submenu examples<https://vsn4ik.github.io/bootstrap-submenu/#html-examples>`_说明：==========因为是bootstrap组件，所以jquery、bootstrap等推介使用：jquery - pip install static-jquerybootstrap - pip install django-bootstrap-themes它们的使用方式和当前组件一样。安装指南===========下载或者clone当前仓库，然后在项目目录中执行：python setup.py installorpip install django-bootstrap-submenu使用指南：===========settings.py`INSTALLED_APPS = ('jquery','bootstrap_themes','bootstrap_submenu',...)`xxxx.html(模板文件使用)`{% load bootstrap_submenu%}{% bootstrap_submenu_css%}{% bootstrap_submenu_js%}``<div class="row"><div class="col-sm-4 col-sm-offset-2 m-b"><div class="dropdown"><button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" data-submenu>Dropdown <span class="caret"></span></button><ul class="dropdown-menu"><li class="dropdown-submenu"><a tabindex="0">Action</a><ul class="dropdown-menu"><li><a tabindex="0">Sub action</a></li><li class="dropdown-submenu"><a tabindex="0">Another sub action</a><ul class="dropdown-menu"><li><a tabindex="0">Sub action</a></li><li><a tabindex="0">Another sub action</a></li><li><a tabindex="0">Something else here</a></li></ul></li><li><a tabindex="0">Something else here</a></li><li class="disabled"><a tabindex="-1">Disabled action</a></li><li class="dropdown-submenu"><a tabindex="0">Another action</a><ul class="dropdown-menu"><li><a tabindex="0">Sub action</a></li><li><a tabindex="0">Another sub action</a></li><li><a tabindex="0">Something else here</a></li></ul></li></ul></li><li class="dropdown-header">Dropdown header</li><li><a tabindex="0">Something else here</a></li></ul></div></div></div><script>$(function(){$('[data-submenu]').submenupicker();//启动submenu组件});</script>`