An app to manage toots (Mastodon posts) in a Django project
Project description
django-tweets
Create and delete tweets in a Django project.
This packages takes the advantage of the tweepy functionalities to connect it to a Django Backend.
The tweets objects can have media files as well.
Set up
- Install from PyPI
python -m pip install django-toots
- Add the package to your settings INSTALLED_APPS
INSTALLED_APPS = [
...
"django_toots",
...
]
- Add the following settings to your Django project.
Example:
import os
from dotenv import load_dotenv
load_dotenv()
...
# django-toots
MASTODON_ACCESS_TOKEN=os.environ.get("MASTODON_ACCESS_TOKEN", "")
MASTODON_API_BASE_URL = "https://fosstodon.org"
- Run migrations
python manage.py migrate
Usage
TODO: Document this!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-toots-0.0.0.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for django_toots-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43e12f5169265f3b3476a0e058fe136a422300b2db5dd9140c9cc5008d6ca877 |
|
MD5 | 0efed82d41bf88b2cf8160697b2756ea |
|
BLAKE2b-256 | 297574058ea92ad6e41bf9bdee32e337aaf20572170ec8902d9c860fc344cd69 |