django app for torque
Project description
The torque app
This is the django app that should be deployed in a running django server.
Outside of installing the app, this should remain a black box. The reason being that none of the routes or uses for this should be accessed except through the Torque MediaWiki plugin.
For developers, look in the individual code files for details on the inner workings.
See INSTALL.md for installation instructions.
Django Commands
torque ships commands
remove_unattached
Whenever loading up a new collection, there may be changes to the form of the data as the collection evolves. Because it may be uploaded in mistake, nothing is deleted from the database to ensure that no unintentional data loss occurs. However, admins may want to remove that data to reflect the upgrades in the data.
remove_unattached
removes those items. Each field/document that gets uploaded will
be marked as attached
. If there are edits associated with a field or document, then
the --forced
argument is required.
Removing attachment files
As a system runs, old FileField files can hang around on the hard drive. Those are usually uploaded attachments and templates. This can start to take up too much space. To remove, one was is to use https://github.com/akolpakov/django-unused-media:
$ pipenv install django-unused-media
Add 'django_unused_media'
to your INSTALLED_APPS and then run:
$ pipenv run python ./manage.py cleanup_unused_media
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
File details
Details for the file django-torque-0.4.2.tar.gz
.
File metadata
- Download URL: django-torque-0.4.2.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29e0403b6e440948827c9c2eb3877a53eceb9f7d98d4aa1592dea459f28cd118 |
|
MD5 | 435ab90905c4f87d55c9fef270cd51f6 |
|
BLAKE2b-256 | 235550321590c8f1c86e712792bcb4a73fcb5d5cdd316617759ffa87a7d96645 |
File details
Details for the file django_torque-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: django_torque-0.4.2-py3-none-any.whl
- Upload date:
- Size: 42.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61d511297bd290f156dd2341b5617c23c0e2da97da8d4352a087fbc1547115d2 |
|
MD5 | 8a3ba0c24d00e32335494a445503ff6c |
|
BLAKE2b-256 | 75b576696e336422a51ace8df739aec48c6669aa261fdb53d56a54bf1c656a12 |