Skip to main content

Collections of libCST codemodders to upgrade Django

Project description

Django Codemod

PyPI Build Status Test Documentation Status Updates

All Contributors

A tool to help upgrade Django projects to newer version of the framework by automatically fixing deprecations.

Installation

Install this via pip (or your favourite installer):

pip install django-codemod

Usage

To fix deprecations removed in Django 4.0:

djcodemod --removed-in 4.0 .

This will go through all the files under your local directory, under . and apply code modifications to help upgrading to Django 4.0.

Check out the documentation for more detail on usage and the full list of codemodders.

How it works

This is based on libCST and implements codemods for it. This is currently very limited but the aim is to add more for helping with upcoming deprecations.

Codemodders are grouped by the version of Django where a function or feature is removed.

Not finding what you need? I'm open to contributions, please send me a pull request.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Bruno Alla

💻 🐛 📖

Adam Johnson

📖

Nikita Sobolev

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-codemod, version 0.7.0
Filename, size File type Python version Upload date Hashes
Filename, size django_codemod-0.7.0-py2.py3-none-any.whl (11.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-codemod-0.7.0.tar.gz (19.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page