Skip to main content

django-clear-tables v0.1.2

This is a simple django-app, registering a task called django_clear_tables.

It will delete the contents of django's Permission and ContentTypes models so you can load data from a fixture without problems. Normally, an initial migrate will create permission and content-type data. If you want to clone data from another instance, to a fresh database, this data will clash with the loaddata command.

Be careful because it can also easily mess up your existing database.

Install it with:

pip install django-clear-tables

Usage is as follows:

Add django_clear_tables to INSTALLED_APPS in your django settings.py, then:

# initially setup the database
rm db.sqlite3  # or using mysql, pg, ...
./manage.py migrate
# wipe the initially created data
./manage.py django_clear_tables
# load a fixture from somewhere else
./manage.py loaddata dumpdata-from-another-instance.json

Metadata

Release files for django-clear-tables 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-clear-tables 0.1.2
File Size Uploaded Provenance
django-clear-tables-0.1.2.tar.gz 2.2 kB Without provenance Details

Release files / django-clear-tables-0.1.2.tar.gz

Download URL django-clear-tables-0.1.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1fba9238caba4eaed6da24a5675e4cada006340e9e50384f2f85d487e5e0424f
BLAKE2b-256 checksum
How to use checksums
b7fd317dfd42a1803fbafcf9dea86f2faa028347ed70bac0ea99e8aca3027412
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.12

Security for django-clear-tables 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page