Skip to main content

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

  1. Install from PyPI
python -m pip install django-toots
  1. Add the package to your settings INSTALLED_APPS
INSTALLED_APPS = [
    ...
    "django_toots",
    ...
]
  1. 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"
  1. Run migrations
python manage.py migrate

Usage

TODO: Document this!

Project details


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)

Uploaded Source

Built Distribution

django_toots-0.0.0-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page