Skip to main content

No project description provided

Project description

https://travis-ci.org/iwoca/django-seven.svg?branch=develop

Collection of code/tools to help for Django upgrading. This package name is a reference to python package ‘six’ which was helping compatibility between python 2 and 3.

The idea of this package is to share some experience gained from a Django upgrade from 1.4 to 1.9 on a quite big project. Have a look at Django Upgrade talk for more details. django-seven will at the beginning contain compat module and deprecated rules logic.

Deprecated rules

A Django management command check_deprecated_rules is available to check if your project is “upgrade-compatible”.

You should first add django_seven.deprecated_rules to your INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    'django_seven.deprecated_rules',
]

Then launch the management command for your project:

$ ./manage.py check_deprecated_rules

./core/models.py
1601: models.BooleanField has to be initialised with default parameter,
      as implicit default has changed between Django 1.4 (False) and 1.6 (None).
L6:     boolean_field = models.BooleanField()

This command will give you a list of non-respected rules, with useful informations to fix them:

  • The impacted file,

  • The rule number, with an explanation of the rule,

  • The line number, and the line copy.

[UNDER HEAVY DEVELOPMENT / DESIGN CHOICES]

Project details


Download files

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

Source Distribution

django_seven-0.1.tar.gz (14.4 kB view details)

Uploaded Source

File details

Details for the file django_seven-0.1.tar.gz.

File metadata

  • Download URL: django_seven-0.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django_seven-0.1.tar.gz
Algorithm Hash digest
SHA256 460d6275a931c35975ba2d99b669c45a65991cf8b6e1bf444ea5d67e3f75ce0f
MD5 bb9e7edf30c405967587bb34b51ebc48
BLAKE2b-256 637008fb5db47d78e4e772eb4c991d97087632e0f0a34dc828f551fbc8cb6ad8

See more details on using hashes here.

Provenance

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