Skip to main content

Reusable application for Django allowing users to flag/bookmark site objects

Project description


Reusable application for Django allowing users to flag/bookmark site objects

So you want a user to be able to put some flags on certain site entities.

Let’s say you need a kind of bookmark powered service, or a site where content is flagged and moderated, or a simplified rating system or something similar.

Inherit you model from siteflags.models.ModelWithFlag and you’re almost done.

Like that:

# myapp/
from django.db import models
from siteflags.models import ModelWithFlag

class Article(models.Model, ModelWithFlag):

    ... # Some model fields here.

And like so:

# myapp/

from django.shortcuts import get_object_or_404
from .models import Article

def article_details(request, id):

    article = get_object_or_404(Article, pk=id)


    # Now a user adds this article to his bookmarks.


Quite simple.

Project details

Release history Release notifications

History Node


History Node


History Node


History Node


History Node


This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-siteflags-0.2.0.tar.gz (15.8 kB) Copy SHA256 hash SHA256 Source None Sep 2, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page