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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file django-toots-0.0.0.tar.gz.

File metadata

  • Download URL: django-toots-0.0.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for django-toots-0.0.0.tar.gz
Algorithm Hash digest
SHA256 1087dcd3a53d0fd7687b4f510f982e5b820390aa09e8ec77c726ffb392f74d86
MD5 254208de87dcb2673837815912fdb7a4
BLAKE2b-256 ca54a20b7201beffa48031f1f7ed0c105997f3df318ae3fe5da9d631bf8fc397

See more details on using hashes here.

File details

Details for the file django_toots-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: django_toots-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for django_toots-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43e12f5169265f3b3476a0e058fe136a422300b2db5dd9140c9cc5008d6ca877
MD5 0efed82d41bf88b2cf8160697b2756ea
BLAKE2b-256 297574058ea92ad6e41bf9bdee32e337aaf20572170ec8902d9c860fc344cd69

See more details on using hashes here.

Supported by

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