Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 40 lines (26 sloc) 0.992 kB
f64741b @jk0 Initial commit.
authored
1 django-emailpost - Post to Django blogs via email.
2
3
4 Installation
5
6 git clone git://github.com/jk0/django-emailpost.git
7 cd django-emailpost
8 sudo ln -s /path/to/django-emailpost /usr/bin
9
fab4541 @jk0 Updated README.
authored
10 sudo apt-get install postfix
03e5d0d @jk0 Automatically tweet title and URL of new posts.
authored
11 sudo postconf -e "mailbox_command = django-emailpost --tweet -p <project path> -a <app> -r <recipient>"
f64741b @jk0 Initial commit.
authored
12 sudo /etc/init.d/postfix restart
9ce9121 @jk0 Updated README.
authored
13
14
15 DB Model Assumptions
16
17 class Category(models.Model):
18 name = models.CharField()
19
20 class Post(models.Model):
21 title = models.CharField()
22 slug = models.CharField()
23 date = models.DateTimeField()
24 body = models.TextField()
25 published = models.BooleanField()
26 categories = models.ManyToManyField(Category)
03e5d0d @jk0 Automatically tweet title and URL of new posts.
authored
27
28
29 Twitter Requirements
30
31 The following variables need to be set in settings.py:
32
33 BITLY_LOGIN
34 BITLY_APIKEY
35
36 TWITTER_CONSUMER_KEY
37 TWITTER_CONSUMER_SECRET
38 TWITTER_ACCESS_TOKEN_KEY
39 TWITTER_ACCESS_TOKEN_SECRET
Something went wrong with that request. Please try again.