Skip to content

lostb1t/django-autocomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Django autocompletion for taggit, M2M and FK fields

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published