Django autocompletion for taggit, M2M and FK fields
JavaScript Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autocomplete
.gitignore
MANIFEST.in
README.md
REQUIREMENTS
setup.py

README.md

django-autocomplete

This app extends django-taggit with an autocomplete field provided by the awesome jQuery's TextExt plugin (http://textextjs.com/).

Using it

  1. Add to settings.py:

    INSTALLED_APPS = (
        # ...
        'autocomplete',
    )
    
  2. Add to URLs:

    url(r'^admin/autocomplete/', include('autocomplete')),
    
  3. Add to your models:

    from django.db import models
    from autocomplete.managers import TaggableManager
    
    class Page(models.Model):
        # ...
        tags = TaggableManager()
    
  4. If you want to use autocomplete field out of the admin make sure you make the the grappelli jquery namespace avaible in your template

    var django = {
      "jQuery": jQuery.noConflict()
    };
    
  5. Enjoy a sane tagging widget on the admin

This package includes a slightly modified copy of the TextExt plugin to work smooth with Grappelli, but you can serve your own by setting AUTOCOMPLETE_JS_PATH on settings.py.

This app is based off: https://github.com/hcarvalhoalves/django-taggitext