Skip to main content

Django Extensions Too

Author:Tim Santor tsantor@xstudios.com

Overview

Django Extensions Too is a collection of custom extensions for the Django Framework. It is recommended as a supplement to the excellent https://github.com/django-extensions/django-extensions

Quickstart

To install Django Extensions Too:

python3 -m pip install django-extensions-too

Settings

To enable django_extensions_too in your project you need to add it to INSTALLED_APPS in your projects settings.py file:

INSTALLED_APPS = (
  'django_extensions_too',
)

Using It

Run python3 manage.py and view the available [django_extensions_too] management_commands.

Delete all files from MEDIA_ROOT (local or cloud) which are not referenced in the database.

$ python manage.py delete_unreferenced_files

Show a list of all files missing from MEDIA_ROOT(local or cloud) that are referenced in the database.

$ python manage.py missing_files

Completely remove an installed app from a project. Removes all model related tables as well as all traces from auth_permissions, django_admin_log, django_content_type, django_migrations, etc.

$ python manage.py remove_app appname

Adds permissions for proxy models to provide more granular permission control.

$ python manage.py add_proxy_permissions

Output all permission strings:

$ python manage.py get_all_permissions

Local Development

  1. make env
  2. make pip_install
  3. make makemigrations
  4. make migrate
  5. make superuser
  6. make serve
  • Visit http://127.0.0.1:8000/admin/ for the Django Admin
  • Visit http://127.0.0.1:8000/api/docs/ for the API docs

Testing

Currently django_spaday has 94% test coverage.

  • Pytest: make pytest
  • Coverage: make coverage
    • Open Report: make open_coverage

Issues

If you experience any issues, please create an issue on Bitbucket.

History

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

0.1.7 (2025-04-03)

  • Move to ruff and add tests.

0.1.6 (2023-06-21)

  • Change to new Python packaging style with pyproject.toml.

0.1.5 (2022-08-29)

  • Ignore sorl-thumbnail cache/ files.

0.1.4 (2021-09-03)

  • Added manifest_storage_check to test manifest storage methods locally.

0.1.3 (2021-08-24)

  • Fixed delete_unreferenced_files and missing_files to not assume local file storage backend.

0.1.2 (2017-04-03)

  • Added a delete_unreferenced_files command which deletes all files in MEDIA_ROOT that are not referenced in the database.

0.1.1 (2017-04-03)

  • Fixed a bug with an outdated permissions method call in fix_proxy_permissions command.

0.1.0 (2017-03-30)

  • First release on PyPI.

Release files for django-extensions-too 0.1.7

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-extensions-too 0.1.7
File Size Uploaded
django-extensions-too-0.1.7.tar.gz 12.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-extensions-too 0.1.7
File Interpreter ABI Platform
django_extensions_too-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 22.9 kB

Release files / django-extensions-too-0.1.7.tar.gz

Download URL django-extensions-too-0.1.7.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f43ccf019ae2ed1454931e3be441f1e093df587bb48a38ae0912a62e7e027eba
BLAKE2b-256 checksum
How to use checksums
977be249a6ccf06646dbe1fc2a14088018913fa6692a6a3114f5782ad542e8d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.11

Release files / django_extensions_too-0.1.7-py3-none-any.whl

Download URL django_extensions_too-0.1.7-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e0d994506fbadc6a33b3285eedaa90ab5fdcd9591b6186be7299cba4ad904ee
BLAKE2b-256 checksum
How to use checksums
6b12fdd34f754cc8d235e2876091bd494fd256369e9753ccc89990c6a41a0e83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.11

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

1 release file

0.1.4

2 release files

0.1.3

2 release files

0.1.2

3 release files

0.1.1

3 release files

0.1.0

3 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