django-availfiles
A minimal, frontend-agnostic file library for Django. AvailFile is a
flat model — upload a file, get a URL back — deliberately not related
to any other model via a foreign key. The point is a place to put a file
once and link to it from anywhere (a blog post body, a product
description, an email), not a structured per-model attachment relation.
What this package does, and doesn't, do
AvailFile:file,original_filename(captured automatically on save), an optionallabel,uploaded_by,uploaded_at.- Registers with Django admin.
- It does not ship any views, URLs, upload endpoint, or picker UI — that's genuinely framework/host-specific (a dashboard page, a rich-text editor's file-picker, a plain form), and belongs in an integration layer. For an Oscar dashboard + TinyMCE integration, see django-oscar-availfiles.
- No opinion on which file types are allowed. A deployment might restrict this library to non-image files (if images already have their own upload flow elsewhere) — that's a policy decision for whichever upload view is actually used, not something this model enforces.
Installation
uv add django-availfiles
INSTALLED_APPS = [
...,
"availfiles",
]
Run manage.py migrate.
Development
uv sync
uv run pytest
Metadata
Release files for django-availfiles 0.2.0
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_availfiles-0.2.0.tar.gz | 44.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_availfiles-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.5 kB
Release files / django_availfiles-0.2.0.tar.gz
| Download URL | django_availfiles-0.2.0.tar.gz |
|---|---|
| Size | 44.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32b3abd3112ea5d353431b33af7cdaf85f4ff626eb5961fd78d8eee41d30abec
|
|
BLAKE2b-256 checksum How to use checksums |
9e02022485d8f35a96e4540b98aa36e286be9136f5f88b1f781c10889e6d1770
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / django_availfiles-0.2.0-py3-none-any.whl
| Download URL | django_availfiles-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0eb63827359bcf99e42d1262edb55249dc93cf922209d36ea6694a5511b68271
|
|
BLAKE2b-256 checksum How to use checksums |
f651fe8f2c0faa68b15500251dc4a6efaf3cd8bc2adb6ba38121c4da0586cbde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|