1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Implemented PEP386-compatible version numbers. Thanks Jannis for the guidance.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Aymeric Augustin
2012-01-08 15:05:15 +00:00
parent aa4e152296
commit 40f0ecc56a
7 changed files with 56 additions and 32 deletions

View File

@@ -4,12 +4,11 @@ from optparse import OptionParser, NO_DEFAULT
import imp
import warnings
import django
from django.core.management.base import BaseCommand, CommandError, handle_default_options
from django.utils.importlib import import_module
# For backwards compatibility: get_version() used to be in this module.
get_version = django.get_version
from django import get_version
# A cache of loaded commands, so that call_command
# doesn't have to reload every time it's called.