GithubHelp home page GithubHelp logo

isabella232 / django-select2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paylogic/django-select2

0.0 0.0 0.0 8.81 MB

This is a Django integration for Select2

License: Apache License 2.0

JavaScript 28.81% Python 66.33% CSS 4.27% HTML 0.59%

django-select2's Introduction

Django-Select2

PyPi Version Build Status Code Health Test Coverage GitHub license Join the chat at https://gitter.im/applegrew/django-select2

This is a Django integration of Select2.

The app includes Select2 driven Django Widgets and Form Fields.

Installation

  1. Install django_select2

     pip install django_select2
    
  2. Add django_select2 to your INSTALLED_APPS in your project settings.

  3. When deploying on production server, run :-

     python manage.py collectstatic
    
  4. Add django_select to your urlconf if you use any 'Auto' fields.

     url(r'^select2/', include('django_select2.urls')),
    

Documentation

Documentation available at http://django-select2.readthedocs.org/.

More details

More details can be found on my blog at - http://blog.applegrew.com/2012/08/django-select2/.

External Dependencies

  • Django - This is obvious.
  • jQuery - This is not included in the package since it is expected that in most scenarios this would already be available.
  • Memcached (python-memcached) - If you plan on running multiple python processes with GENERATE_RANDOM_SELECT2_ID enabled, then you need to turn on ENABLE_SELECT2_MULTI_PROCESS_SUPPORT. In that mode it is highly recommended that you use Memcached, to minimize DB hits.

Example Application

Please see testapp application. This application is used to manually test the functionalities of this package. This also serves as a good example.

You need only Django 1.4 or above to run that. It might run on older versions but that is not tested.

Special Thanks

  • Samuel Goldszmidt (@ouhouhsami) for reporting many fundamental issues with the code, because of which versions 2.0 and 2.0.1 were released.

Official Contributors

  • Johannes Hoppe (@codingjoe)

Changelog

License

Copyright 2012 Nirupam Biswas

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless 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.

django-select2's People

Contributors

ameriks avatar apalazon avatar applegrew avatar bcail avatar bhaskar8088 avatar blueyed avatar bogdal avatar bubenkoff avatar codingjoe avatar crccheck avatar dyve avatar emorozov avatar fjcapdevila avatar geyser avatar hotet avatar imom0 avatar iwaszko avatar jdotjdot avatar johnraz avatar jsenecal avatar mociepka avatar natim avatar razisayyed avatar rizumu avatar scotteadams avatar stefanfoulis avatar stephane avatar superqwer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.