1
0
mirror of https://github.com/django/django.git synced 2025-01-30 03:59:19 +00:00
django/django/__init__.py
2014-02-06 15:54:27 -06:00

22 lines
675 B
Python

VERSION = (1, 7, 0, 'alpha', 2)
def get_version(*args, **kwargs):
# Don't litter django/__init__.py with all the get_version stuff.
# Only import if it's actually called.
from django.utils.version import get_version
return get_version(*args, **kwargs)
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)