Unmanaged Django Models for Mastodon
Project description
Unmanaged Django Models for Mastodon
Installation
uv add django-unmanaged-mastodon
# or
pip install django-unmanaged-mastodon
Configure settings.py with correct INSTALLED_APPS, DATABASES, and DATABASE_ROUTER
# Add django_unmanaged_mastodon to installed apps
INSTALLED_APPS = [
"myapp",
"django_unmanaged_mastodon", # << Add to installed apps
# Django
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
]
# https://docs.djangoproject.com/en/6.0/ref/settings/#databases
DATABASES = {
"default": env.db_url(
var="DATABASE_URL",
default=f"sqlite:///{BASE_DIR}/db.sqlite3",
),
# Configure additional database connection named 'django_unmanaged_mastodon'
# for the module to use with the router
"django_unmanaged_mastodon": env.db_url("DATABASE_MASTODON", default=None),
}
# https://docs.djangoproject.com/en/6.0/ref/settings/#database-routers
# Add the provided router
DATABASE_ROUTERS = ["django_unmanaged_mastodon.router.Router"]
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_unmanaged_mastodon-0.1.0.tar.gz.
File metadata
- Download URL: django_unmanaged_mastodon-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1dbb654725eb7ddc298232686fcb6a92a974cf6c4eb717c0b630f7516dbfb66
|
|
| MD5 |
823851b5bc305913aff07e3ace56afa0
|
|
| BLAKE2b-256 |
349a6fb3dce9f90970a286c606d9681453d915252e8689385f184f2f7b48532c
|
File details
Details for the file django_unmanaged_mastodon-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_unmanaged_mastodon-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec9a1325206ba8128f9236c1c77e71a53dcfeeb76446226fc2f91c13c3e63534
|
|
| MD5 |
1436bee61742ecc69b0439fc08801ec9
|
|
| BLAKE2b-256 |
d35128a4a9d5e33eed5f209dc18c0395ad7c79d299fe089a1b3382d4df5aeb97
|