Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Post to Django blogs via email.
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
LICENSE
README
django-emailpost
setup.py

README

django-emailpost - Post to Django blogs via email.


Installation

    git clone git://github.com/jk0/django-emailpost.git
    cd django-emailpost
    sudo ln -s /path/to/django-emailpost /usr/bin

    sudo apt-get install postfix
    sudo postconf -e "mailbox_command = django-emailpost --tweet -p <project path> -a <app> -r <recipient>"
    sudo /etc/init.d/postfix restart


DB Model Assumptions

    class Category(models.Model):
        name = models.CharField()

    class Post(models.Model):
        title = models.CharField()
        slug = models.CharField()
        date = models.DateTimeField()
        body = models.TextField()
        published = models.BooleanField()
        categories = models.ManyToManyField(Category)


Twitter Requirements

    The following variables need to be set in settings.py:

        BITLY_LOGIN
        BITLY_APIKEY

        TWITTER_CONSUMER_KEY
        TWITTER_CONSUMER_SECRET
        TWITTER_ACCESS_TOKEN_KEY
        TWITTER_ACCESS_TOKEN_SECRET
Something went wrong with that request. Please try again.