1
0
mirror of https://github.com/django/django.git synced 2025-03-06 15:32:33 +00:00
django/django/__init__.py
Tim Graham 0b16c1322f Simplified get_version() in django/__init__.py
Thanks Luke Plant for the report.
2014-11-24 07:02:29 -05:00

19 lines
519 B
Python

from django.utils.version import get_version
VERSION = (1, 8, 0, 'alpha', 0)
__version__ = get_version(VERSION)
def setup():
"""
Configure the settings (this happens as a side effect of accessing the
first setting), configure logging and populate the app registry.
"""
from django.apps import apps
from django.conf import settings
from django.utils.log import configure_logging
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
apps.populate(settings.INSTALLED_APPS)