Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-torque-0.5.0.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

django_torque-0.5.0-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

Details for the file django-torque-0.5.0.tar.gz.

File metadata

  • Download URL: django-torque-0.5.0.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for django-torque-0.5.0.tar.gz
Algorithm Hash digest
SHA256 5aa1967c11cd58a5ba7ea3742dac3165e20b7128edd5c26b92dd0f094143752d
MD5 859bc77666dcef0b1f048f3df439a8cb
BLAKE2b-256 798cc804a7d9e58402cb2bcb565cbfe15f1f44b4f3b07b0d0327c48081aaa434

See more details on using hashes here.

File details

Details for the file django_torque-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_torque-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b779c0a5d03f67f78639923f10aa97e7373dc7ec817a29b9f0311d139445e1c
MD5 e057eb61bb0d63c08c46e2fa77cc9dcc
BLAKE2b-256 e88df68d3e0173e73dca1d4560b353f8cb2ddf1eb8b1097dd1545bd28dd277fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page