Skip to main content

Frontend-agnostic Django autocomplete utilities

Project description

https://travis-ci.org/novafloss/django-agnocomplete.svg?branch=master

Heavily based on django-autocomplete-light workflow and concepts, this toolkit offers a front-end agnostic way to get fields for autocompletion.

It will provide:

  • a simple and configurable entry-point management,

  • a REST-like HTTP API to search for results,

  • Fields and widgets that will make the interface between our Django code and your Javascript.

Status

Under construction. Warning, fresh paint.

Install

At the moment, it’s only a manual install:

pip install -e ./

Tests

Install tox in your environment (it could be a virtualenv) and run:

tox

It’ll run the tests for all the combinations of the following:

  • Python 2.7, 3.3, 3.4

  • Django 1.6, 1.7, 1.8

and a flake8 check.

Are you a developper?

To target a specific test case, use the following:

tox -e py27-django17 --  demo.tests.test_core.AutocompleteChoicesPagesOverrideTest

Everything after the double-dash will be passed to the django-admin.py test command.

If you need to install a debugger (let’s say ipdb), you can use the TOX_EXTRA environment variable like this:

TOX_EXTRA=ipdb tox -e py27-django18

Run the demo

The (draft) demo site can be browsed using the Django devserver. Run:

tox -e serve

It will run a syncdb (it may ask you questions) and then a runserver with your current demo.settings. You can browse the (very rough) website at http://127.0.0.1:8000/. You can add any runserver options you want using the tox positional parameters, like this:

tox -e serve -- 9090  # to change the listening port

License

This piece of software is being published under the terms of the MIT License. Please read the LICENSE file for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-agnocomplete-0.1.0.tar.gz (226.4 kB view details)

Uploaded Source

File details

Details for the file django-agnocomplete-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-agnocomplete-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5fed0a0414206cddf338bb45ffba25eb15e9ef4ae7d6c53f4280b3168e7f5784
MD5 22a904350b74ee299ab90f6d078b4e5e
BLAKE2b-256 b8b7e66891496df3e2436d6fa13b5a8be947effb1ff78c2af128101690e7fc1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page