This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A simple subscription app for Django. Allows a user to subscribe to any object.

Project Description

A simple subscription app for Django.

Installation

Prerequisites:

  • Django

If you want to install the latest stable release from PyPi:

$ pip install django-subscribe

If you feel adventurous and want to install the latest commit from GitHub:

$ pip install -e git://github.com/bitmazk/django-subscribe.git#egg=subscribe

Add subscribe to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...,
    'subscribe',
)

Run the South migrations:

./manage.py migrate subscribe

Usage

In order to render a subscribe/unsubscribe button next to an object, do this:

{% load i18n subscribe_tags %}
{% get_subscribers object as subscribers %}
{% get_ctype object as ctype %}
{% is_subscribed user object as user_is_subscribed %}
{% if user_is_subscribed %}
    <p><a href="{% url "subscriptions_delete" ctype_pk=ctype.pk object_pk=object.pk %}">{% trans "Un-subscribe" %}</a></p>
{% else %}
    <p><a href="{% url "subscriptions_create" ctype_pk=ctype.pk object_pk=object.pk %}">{% trans "Subscribe" %}</a></p>
{% endif %}

Test

For a test run

$ python manage.py check $ python manage.py migrate $ python manage.py createsuperuser $ python manage.py runserver

and check it out at http://localhost:8000/admin

Roadmap

Check the issue tracker on github for milestones and features to come.

Release History

Release History

This version
History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-subscribe-0.1.6.tar.gz (9.5 kB) Copy SHA256 Checksum SHA256 Source Feb 13, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting