Django Extensions is a collection of custom extensions for the Django Framework.
Project description
Django Extensions Too
Author:Tim Santor tsantor@xstudios.agency
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
Getting It
To install Django Extensions Too, just use pip:
$ pip install django-extensions-too
To install the development version:
$ pip install git+https://bitbucket.org/tsantor/django-extensions-too.git
If you want to install it from source, grab the git repository and run setup.py:
$ git clone https://bitbucket.org/tsantor/django-extensions-too.git
$ cd django-extensions-too
$ python setup.py install
Installing It
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
Delete all files from MEDIA_ROOT
which are not referenced in the database.
$ python manage.py delete_unreferenced_files
Show a list of all files missing from MEDIA_ROOT
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 where the model actually references the proxy model and not the original model.
$ python manage.py fix_proxy_permissions
Documentation
You can view documentation online at:
- TODO
Or you can look at the docs/ directory in the repository.
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.3 (2021-08-24)
- Fixed
delete_unreferenced_files
andmissing_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.
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
Built Distribution
Hashes for django-extensions-too-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cb798664360ee639fb3027012134d99ef3dcec3b9f0af0170834f970656b2ca |
|
MD5 | 1f3bd5aa6cac84cdff547b2ada13acd0 |
|
BLAKE2b-256 | ed6f997fd0e75a9512e0e8cb043e4f9cc8de3a8efe1607ab6eb2d857e39c027f |
Hashes for django_extensions_too-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f97ae2a609921f82a6843a59ad00d00729611fa21830dcd07dab679edb038a63 |
|
MD5 | ea102e1dd0d7e1ed5a5efaf2393cd08a |
|
BLAKE2b-256 | fc8b308808805e5c98e58dd8a9347e96d1189859beb44c1b10fbf6b1b715789a |