forked from fcurella/django-taggit-autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
23 lines (16 loc) · 1.11 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
This is a fork of django-taggit-autocomplete (https://github.com/Jaza/django-taggit-autocomplete), adapted for working with http://code.drewwilson.com/entry/autosuggest-jquery-plugin
*** Installation ***
1. You need to have django-taggit already installed
2. Download django-taggit-autocomplete and use setup.py to install it on your system:
python setup.py install
3. copy the folder 'static/jquery-autocomplete' and put it in the folder specified in your project's MEDIA_URL setting. If you want to put it somewhere else add TAGGIT_AUTOCOMPLETE_JS_BASE_URL to your project settings.
4. Add "taggit_autocomplete" to installed apps in your project's settings.
5. Add the following line to your project's urls.py file:
(r'^taggit_autocomplete/', include('taggit_autocomplete.urls')),
*** Usage ***
** Using the model field **
You can use TaggableManager to enable autocompletion right in your models.py file. In most cases this is the easiest solution. Example:
from django.db import models
from taggit_autocomplete.managers import TaggableManager
class SomeModel(models.Model):
tags = TaggableManager()