2014-11-24 20:02:29 +08:00
|
|
|
from django.utils.version import get_version
|
2013-12-30 22:42:15 +08:00
|
|
|
|
2015-05-21 02:10:05 +08:00
|
|
|
VERSION = (1, 8, 3, 'alpha', 0)
|
2013-12-30 22:42:15 +08:00
|
|
|
|
2014-09-10 02:26:03 +08:00
|
|
|
__version__ = get_version(VERSION)
|
|
|
|
|
|
|
|
|
2013-12-30 22:42:15 +08:00
|
|
|
def setup():
|
2013-12-31 19:28:01 +08:00
|
|
|
"""
|
|
|
|
Configure the settings (this happens as a side effect of accessing the
|
|
|
|
first setting), configure logging and populate the app registry.
|
|
|
|
"""
|
2013-12-30 22:42:15 +08:00
|
|
|
from django.apps import apps
|
|
|
|
from django.conf import settings
|
2013-12-31 19:28:01 +08:00
|
|
|
from django.utils.log import configure_logging
|
|
|
|
|
|
|
|
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
|
2013-12-31 06:15:29 +08:00
|
|
|
apps.populate(settings.INSTALLED_APPS)
|