Skip to main content

Django Find Replace

Project description

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


Release history Release notifications | RSS feed

This version

0.1

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

Uploaded Source

Built Distribution

django_findreplace-0.1-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-findreplace-0.1.tar.gz.

File metadata

  • Download URL: django-findreplace-0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for django-findreplace-0.1.tar.gz
Algorithm Hash digest
SHA256 af98457c5010234ff532e8efff1b7a360671ac42a6d371dcf42caa6e8b37be8e
MD5 5fbe5f3e63eb55b63fd9a6dfc057848b
BLAKE2b-256 174a1cacd358cc64b3953a93cfabe5e0b57f86724dd50ac507dfbab74375fc30

See more details on using hashes here.

File details

Details for the file django_findreplace-0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: django_findreplace-0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for django_findreplace-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b0ded61825976710326745ccdb3fcee4f80dc39e19fa522d31fbace1fa02a5fa
MD5 93760f9501353b0a3c83656a46cf494a
BLAKE2b-256 77428a52168afd9afbb6790f0a383538b8d82b3c1033abcfe868f3da31ddb49f

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