app/django/contrib/gis/db/backend/mysql/creation.py
author Todd Larsen <tlarsen@google.com>
Wed, 21 Jan 2009 02:14:05 +0000
changeset 860 cfb57fe35d3c
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Add a clean_agrees_to_tos() validator that requires "Yes" if ToS exists. Also, more user_logic.logic => user_logic fixes. If you are going to import "as", you might as well make the renaming worthwhile. Maybe we need to add a section on "import ... from ... as ..." in the style guide? Patch by: Todd Larsen Review by: to-be-reviewed


def create_spatial_db(test=True, verbosity=1, autoclobber=False):
    if not test: raise NotImplementedError('This uses `create_test_db` from test/utils.py')
    from django.db import connection
    connection.creation.create_test_db(verbosity, autoclobber)