Fixed #23442 -- Added django.__version__ per PEP 396.
Thanks abhillman for the suggestion and Claude Paroz for review.
This commit is contained in:
parent
c53f2451a8
commit
d26199cb70
|
@ -2,12 +2,14 @@ VERSION = (1, 8, 0, 'alpha', 0)
|
||||||
|
|
||||||
|
|
||||||
def get_version(*args, **kwargs):
|
def get_version(*args, **kwargs):
|
||||||
# Don't litter django/__init__.py with all the get_version stuff.
|
# Avoid circular import
|
||||||
# Only import if it's actually called.
|
|
||||||
from django.utils.version import get_version
|
from django.utils.version import get_version
|
||||||
return get_version(*args, **kwargs)
|
return get_version(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
__version__ = get_version(VERSION)
|
||||||
|
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
"""
|
"""
|
||||||
Configure the settings (this happens as a side effect of accessing the
|
Configure the settings (this happens as a side effect of accessing the
|
||||||
|
|
Loading…
Reference in New Issue