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.5.2.tar.gz
.
File metadata
- Download URL: django-torque-0.5.2.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 753f152d9a9801110f976e425828e30ae0070acdf6a3a301c1ae1a5e04a50bcd |
|
MD5 | 249b4aee380700172f2bc68634bee198 |
|
BLAKE2b-256 | 67d924505e9c749375743add4fb24f5c0e2505d300db176e39ebf039fd3ebb65 |
File details
Details for the file django_torque-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: django_torque-0.5.2-py3-none-any.whl
- Upload date:
- Size: 47.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 841c1534ea98ff78711ceb39dbcc953e47de640a6b79296a7a4d51f155840218 |
|
MD5 | 4b14940300108783533428a572b2340f |
|
BLAKE2b-256 | 7644ccdbfa3b26891d96f91910cf7569266264b1ce4bb04904a573f68de37f2d |