Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-tagging-ext

How to install django-tagging-ext

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-tagging-ext
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.3.5 Available View build log
0.3.4 Available View build log
0.3.1 Failed View build log
0.2.0 Available View build log
Windows (64-bit)
0.3.5 Available View build log
0.3.4 Available View build log
0.3.1 Failed View build log
0.2.0 Available View build log
Mac OS X (10.5+)
0.3.5 Available View build log
0.3.4 Available View build log
0.3.1 Failed View build log
0.2.0 Available View build log
Linux (32-bit)
0.3.5 Available View build log
0.3.4 Available View build log
0.3.1 Failed View build log
0.2.0 Available View build log
Linux (64-bit)
0.3.5 Available View build log
0.3.4 Available View build log
0.3.1 Failed View build log
0.2.0 Available View build log
 
License
MIT
Lastest release
version 0.3.5 on May 6th, 2011

django-tagging gives you tagging. django-tagging-ext gives you enhanced displays of tags. All rendered HTML is done via templates so you can customize the displays as needed.

Future releases of Django Tagging EXT will include these features:

  • More comprehensive tests
  • Tag dispatching so you can control tagging more tightly. For example, limiting tags to just one model.
  • Tag Auto-complete

Dependencies

django-tagging

Optional Dependencies

Pinax 0.7.x Pinax 0.9+

Installation

Tagged release:

System Message: WARNING/2 (<string>, line 31)

Literal block expected; none found.

pip install django-tagging-ext

Development version:

System Message: WARNING/2 (<string>, line 35)

Literal block expected; none found.

pip install -e git+git://github.com/pydanny/django-tagging-ext.git#egg=django-tagging-ext

Add to your Django settings.py file:

System Message: WARNING/2 (<string>, line 39)

Literal block expected; none found.

INSTALLED_APPS = ( ... 'tagging_ext', )

View rendering via root url_conf

django-tagging-ext is designed so all the work is done in the root urls file.

In the project url_conf (urls.py):

# django-tagging-ext url definitions

System Message: ERROR/3 (<string>, line 53)

Inconsistent literal block quoting.

from blog.models import Post from bookmarks.models import BookmarkInstance from photos.models import Image from tagging.models import TaggedItem

tagged_models = ( dict(title="Blog Posts", query=lambda tag : TaggedItem.objects.get_by_model(Post, tag).filter(status=2), ), dict(title="Bookmarks", query=lambda tag : TaggedItem.objects.get_by_model(BookmarkInstance, tag), ), dict(title="Photos", query=lambda tag: TaggedItem.objects.get_by_model(Image, tag).filter(safetylevel=1), ), )

tagging_ext_kwargs = { 'tagged_models':tagged_models, # You can add your own special template to be the default #'default_template':'custom_templates/special.html' }

urlpatterns += patterns('', url(r'^tags/(?P<tag>.+)/(?P<model>.+)$', 'tagging_ext.views.tag_by_model', kwargs=tagging_ext_kwargs, name='tagging_ext_tag_by_model'), url(r'^tags/(?P<tag>.+)/$', 'tagging_ext.views.tag', kwargs=tagging_ext_kwargs, name='tagging_ext_tag'), url(r'^tags/$', 'tagging_ext.views.index', name='tagging_ext_index'), )

View rendering of Pinax objects via root url_conf

In the pinax project url_conf (urls.py) we use the custom_template field to explicitly tell Django Tagging EXT to fetch views customized for use in Pinax:

# django-tagging-ext url definitions

System Message: ERROR/3 (<string>, line 92)

Inconsistent literal block quoting.

from blog.models import Post from bookmarks.models import BookmarkInstance from photos.models import Image from tagging.models import TaggedItem

tagged_models = ( dict(title="Blog Posts", query=lambda tag : TaggedItem.objects.get_by_model(Post, tag).filter(status=2), content_template="pinax_tagging_ext/blogs.html", ), dict(title="Bookmarks", query=lambda tag : TaggedItem.objects.get_by_model(BookmarkInstance, tag), content_template="pinax_tagging_ext/bookmarks.html", ), dict(title="Photos", query=lambda tag: TaggedItem.objects.get_by_model(Image, tag).filter(safetylevel=1), content_template="pinax_tagging_ext/photos.html", ), )

tagging_ext_kwargs = { 'tagged_models':tagged_models, # You can add your own special template to be the default #'default_template':'custom_templates/special.html' }

urlpatterns += patterns('', url(r'^tags/(?P<tag>.+)/(?P<model>.+)$', 'tagging_ext.views.tag_by_model', kwargs=tagging_ext_kwargs, name='tagging_ext_tag_by_model'), url(r'^tags/(?P<tag>.+)/$', 'tagging_ext.views.tag', kwargs=tagging_ext_kwargs, name='tagging_ext_tag'), url(r'^tags/$', 'tagging_ext.views.index', name='tagging_ext_index'), )

Running tests from within your Pinax project

For fun and profit:

$ pinax-admin setup_project -b social my_pinax_project
$ cd my_pinax_project
$ python manage.py test tagging_ext

Subscribe to package updates

Last updated May 6th, 2011

Download Stats

Last month:3

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.