Skip to main content
django-clean
====================

django-clean is a package that lets you specify files or directories that you
would like cleaned up. You can specify regular expressions to define which
files you would like automatically removed.


Installation
------------
1. Add 'clean' to your installed apps in your settings.py file.

INSTALLED_APPS = [
'clean',
...
]


2. Define a PROJECT_PATH in your settings.py file.

import os.path, sys
PROJECT_PATH = os.path.dirname(__file__)


3. *OPTIONAL* Define the regular expression patterns you would like to match against in
your settings.py file. The default is a regex pattern to remove *.pyc files. (NOTE: The
regex matches against the full qualified path).

CLEAN_PATTERNS = [
r'^.+\.pyc$',
]


Usage
-----
From your shell, type:

python manage.py clean

This will prompt you to remove files that match the regular expression patterns.

If you are confident in your regex, you can supply a --force option which will not prompt
you before removing pattern matches.

Release files for django-clean 0.1.1

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-clean 0.1.1
File Size Uploaded
django-clean-0.1.1.tar.gz 3.8 kB Details

Release files / django-clean-0.1.1.tar.gz

Download URL django-clean-0.1.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4e455ae972dd7d99f68e492e8315b88e9c6ff27e32e73210fa8ee53d3bf34318
BLAKE2b-256 checksum
How to use checksums
6b882ec8340c5fcf0fc869e852ff13448d59919dcc09db493649acaefae37ff1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.1.2

1 release file

This release

0.1.1 This release

1 release file

0.1.0

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