Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Django autocompletion for taggit, M2M and FK fields

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 autocomplete
Octocat-spinner-32 .gitignore
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.md
Octocat-spinner-32 REQUIREMENTS
Octocat-spinner-32 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

Something went wrong with that request. Please try again.