Skip to main content

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 optional label, 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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-availfiles 0.2.1
File Size Uploaded
django_availfiles-0.2.1.tar.gz 45.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-availfiles 0.2.1
File Interpreter ABI Platform
django_availfiles-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 50.2 kB

Release files / django_availfiles-0.2.1.tar.gz

Download URL django_availfiles-0.2.1.tar.gz
Size 45.4 kB
Tags Source
SHA-256 checksum
How to use checksums
96b227347a664dfad99b48714ed5db2e21f151a293cc0ee8596087284db8440a
BLAKE2b-256 checksum
How to use checksums
6f780aa447672290b23e0cf5c67fefc2f01efcc782acb48494df5af7411dcc11
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.1-py3-none-any.whl

Download URL django_availfiles-0.2.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45ee6374776fa3ba24b8575a5eef406b25687a09185ddff52765f12445d4e5a8
BLAKE2b-256 checksum
How to use checksums
8aacd8b27f426e6186e8ab337c475213368769fdc677bf2fb9e4a99ddc064258
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 history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page