diff options
| author | Tim Graham <timograham@gmail.com> | 2014-09-09 14:26:03 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-09-09 14:27:05 -0400 |
| commit | d26199cb70ffc60fc1f54b87fd0723f62fe793e0 (patch) | |
| tree | 3752446fd84d163626c0d77a9e4ae3b847e6261a /django/__init__.py | |
| parent | c53f2451a83fc081c1886d07c390cf0447b1143f (diff) | |
Fixed #23442 -- Added django.__version__ per PEP 396.
Thanks abhillman for the suggestion and Claude Paroz for review.
Diffstat (limited to 'django/__init__.py')
| -rw-r--r-- | django/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/django/__init__.py b/django/__init__.py index 7bb46b6569..4430fec2c0 100644 --- a/django/__init__.py +++ b/django/__init__.py @@ -2,12 +2,14 @@ VERSION = (1, 8, 0, 'alpha', 0) def get_version(*args, **kwargs): - # Don't litter django/__init__.py with all the get_version stuff. - # Only import if it's actually called. + # Avoid circular import from django.utils.version import get_version return get_version(*args, **kwargs) +__version__ = get_version(VERSION) + + def setup(): """ Configure the settings (this happens as a side effect of accessing the |
