~ubuntu-branches/debian/sid/python-django/sid

« back to all changes in this revision

Viewing changes to django/__init__.py

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2014-09-17 14:15:11 UTC
  • mfrom: (1.3.17) (6.2.18 experimental)
  • Revision ID: package-import@ubuntu.com-20140917141511-icneokthe9ww5sk4
Tags: 1.7-2
* Release to unstable.
* Add a migrate-south sample script to help users apply their South
  migrations. Thanks to Brian May.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
VERSION = (1, 6, 6, 'final', 0)
 
1
VERSION = (1, 7, 0, 'final', 0)
 
2
 
2
3
 
3
4
def get_version(*args, **kwargs):
4
5
    # Don't litter django/__init__.py with all the get_version stuff.
5
6
    # Only import if it's actually called.
6
7
    from django.utils.version import get_version
7
8
    return get_version(*args, **kwargs)
 
9
 
 
10
 
 
11
def setup():
 
12
    """
 
13
    Configure the settings (this happens as a side effect of accessing the
 
14
    first setting), configure logging and populate the app registry.
 
15
    """
 
16
    from django.apps import apps
 
17
    from django.conf import settings
 
18
    from django.utils.log import configure_logging
 
19
 
 
20
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
 
21
    apps.populate(settings.INSTALLED_APPS)