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.
run_cache_rebuilder
run_cache_rebuilder starts up the cache rebuilder. This is responsible for all
the cache regeneration, and split off to a separate application in order to ensure
that it doesn't affect the main process. It IS required to run, though, as it
does important database upkeep items as part of it's workflow.
If you want to run it as part of the application instead of separately, add
"torque.cache_rebuilder", as an INSTALLED_APP in your settings file, as
is exampled in test_settings.py and INSTALL.md
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
Metadata
Release files for django-torque 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_torque-0.9.0.tar.gz | 47.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_torque-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 115.9 kB
Release files / django_torque-0.9.0.tar.gz
| Download URL | django_torque-0.9.0.tar.gz |
|---|---|
| Size | 47.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d28ccd2b8e14d8c3f28fda30e45604de8bf40b9ffa491a0bde9312d40aee8015
|
|
BLAKE2b-256 checksum How to use checksums |
b9b349924d4f8e4973e0ce38828cb830eaa664098eda4d8dc2c351e249e0c1f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / django_torque-0.9.0-py3-none-any.whl
| Download URL | django_torque-0.9.0-py3-none-any.whl |
|---|---|
| Size | 68.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e23dabda9f3d037281cb7539bd1cfd244df5629f03cf83825e091626c749847
|
|
BLAKE2b-256 checksum How to use checksums |
0e6372eca6962e4cdab997f1d46fe1b15e3f3859f857fdd81e8ea434e6f09432
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|