django-twitter-feed
===================
Really simple app to show a Twitter feed in your Django application.
It's using a a task to update the feed regularly.
Set-up:
-------
1.Add it to your "INSTALLED_APPS" settings:
INSTALLED_APPS = (
...
'twitter_feed',
...
)
2.Add your twitter account API access in the settings like this:
TWITTER_FEED_CONSUMER_PUBLIC_KEY = '...'
TWITTER_FEED_CONSUMER_SECRET = '...'
TWITTER_FEED_OPEN_AUTH_TOKEN = '...'
TWITTER_FEED_OPEN_AUTH_SECRET = '...'
3.Run `python manage.py migrate` (if you use South) or `python manage.py syncdb`
4.Run the following command lines to test your Twitter credentials and save the initial feeds:
* `python manage.py update_tweets`
* `python manage.py show_tweets`
5.In a template, show the latest 10 tweets for example:
{% load twitter_feed_tags %}
{% latest_tweets 10 %}
6.Customise the template - simply create a copy of `twitter_feed/latest_tweets.html` and edit it.
For example:
{% load twitter_feed_tags %}
<div class="tweets">
{% for tweet in tweets %}
<div class="tweet">
<p>{{ tweet.content|linkify_twitter_status|urlize|url_target_blank }}</p>
<p class="date">{{ tweet.published_at|date:"F d, Y" }}</p>
</div>
{% endfor %}
</div>
7.Make sure `python manage.py update_tweets` is regurlalry called.
===================
Really simple app to show a Twitter feed in your Django application.
It's using a a task to update the feed regularly.
Set-up:
-------
1.Add it to your "INSTALLED_APPS" settings:
INSTALLED_APPS = (
...
'twitter_feed',
...
)
2.Add your twitter account API access in the settings like this:
TWITTER_FEED_CONSUMER_PUBLIC_KEY = '...'
TWITTER_FEED_CONSUMER_SECRET = '...'
TWITTER_FEED_OPEN_AUTH_TOKEN = '...'
TWITTER_FEED_OPEN_AUTH_SECRET = '...'
3.Run `python manage.py migrate` (if you use South) or `python manage.py syncdb`
4.Run the following command lines to test your Twitter credentials and save the initial feeds:
* `python manage.py update_tweets`
* `python manage.py show_tweets`
5.In a template, show the latest 10 tweets for example:
{% load twitter_feed_tags %}
{% latest_tweets 10 %}
6.Customise the template - simply create a copy of `twitter_feed/latest_tweets.html` and edit it.
For example:
{% load twitter_feed_tags %}
<div class="tweets">
{% for tweet in tweets %}
<div class="tweet">
<p>{{ tweet.content|linkify_twitter_status|urlize|url_target_blank }}</p>
<p class="date">{{ tweet.published_at|date:"F d, Y" }}</p>
</div>
{% endfor %}
</div>
7.Make sure `python manage.py update_tweets` is regurlalry called.
Release files for django-twitter-feed 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-twitter-feed-0.2.tar.gz | 4.1 kB | Details |
Release files / django-twitter-feed-0.2.tar.gz
| Download URL | django-twitter-feed-0.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f40a7b4e29c488807f5a3375b04ce31f402a65d40810628084d6be5e6c1ee9df
|
|
BLAKE2b-256 checksum How to use checksums |
5e6258e2bd48d24c78bb432b6edf476ac05c8bae2ec4bddbf9b2163a2607df84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |