2013-06-28 21:56:45 +08:00
|
|
|
VERSION = (1, 7, 0, 'alpha', 0)
|
2007-06-10 10:00:46 +08:00
|
|
|
|
2013-10-31 23:42:28 +08:00
|
|
|
|
2012-04-30 02:44:32 +08:00
|
|
|
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)
|
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)
|