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.

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

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.8.2.tar.gz (45.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_torque-0.8.2-py3-none-any.whl (66.4 kB view details)

Uploaded Python 3

File details

Details for the file django_torque-0.8.2.tar.gz.

File metadata

  • Download URL: django_torque-0.8.2.tar.gz
  • Upload date:
  • Size: 45.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for django_torque-0.8.2.tar.gz
Algorithm Hash digest
SHA256 f32f385f4fc96a3e9ee0122e43fe1d371aff1ed93f0d2e305799fcae9e69977e
MD5 0c090d949ee18765c5557d1d268cf9af
BLAKE2b-256 0e1344c1ac1a97ea538dab6edf8751581aa62c1d361f528de5021dac51bdf6a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_torque-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 66.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for django_torque-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0c4e0180396767dbb30357a7e067234c0c3b84c40287d72d0e7ef3f83ba87e3f
MD5 b4ee749c67094c53d95b835a6938379f
BLAKE2b-256 dcc99e95145d213a692aba7925e13b2bcac8614125a419dbd76e438579304484

See more details on using hashes here.

Supported by

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