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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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