Skip to main content

Django Find Replace

Project description

Django Find Replace

A Django management command which will replace all instances of a string throughout a database with another - useful for bulk content changes.

Installation

Using pip:

$ pip install django-findreplace

Edit your Django project's settings module, and add the application to INSTALLED_APPS:

INSTALLED_APPS = [
    # ...
    "findreplace",
    # ...
]

Usage

To replace all instances of foo with bar:

$ ./manage.py findreplace foo bar

To use this command without being asked for confirmation:

$ ./manage.py findreplace --noinput foo bar

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_findreplace-0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

django_findreplace-0.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file django_findreplace-0.2.tar.gz.

File metadata

  • Download URL: django_findreplace-0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for django_findreplace-0.2.tar.gz
Algorithm Hash digest
SHA256 689547a29d766a6cf18cf39a25bda62946ccc07fb43476eb5a56b7cb1db10516
MD5 c76129e00a43184645e8ffe14e362722
BLAKE2b-256 1244dfa88b128344d9b1c0803c5f86936e9305590fc8a66e8a8746f0e3627a60

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_findreplace-0.2.tar.gz:

Publisher: publish.yml on developersociety/django-findreplace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_findreplace-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_findreplace-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6aeefbaf15b4503992948385ceb3eb1d5205476784ad70dec4bd747554f04d78
MD5 0bd4c028e4b8f99908d19b49740a5b8a
BLAKE2b-256 56deba0327007419b7992b57301f6a9e0ffc83722e68ab3b2d948219e02cfffd

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_findreplace-0.2-py3-none-any.whl:

Publisher: publish.yml on developersociety/django-findreplace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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