web/lib/django/contrib/gis/db/backend/__init__.py
author ymh <ymh.work@gmail.com>
Tue, 15 Mar 2011 10:34:41 +0100
changeset 65 3d18d15135f1
parent 38 77b6da96e6f1
permissions -rw-r--r--
put video url in segment object

from django.db import connection

if hasattr(connection.ops, 'spatial_version'):
    from warnings import warn
    warn('The `django.contrib.gis.db.backend` module was refactored and '
         'renamed to `django.contrib.gis.db.backends` in 1.2.  '
         'All functionality of `SpatialBackend` '
         'has been moved to the `ops` attribute of the spatial database '
         'backend.  A `SpatialBackend` alias is provided here for '
         'backwards-compatibility, but will be removed in 1.3.')
    SpatialBackend = connection.ops