<s> from django . core . exceptions import ImproperlyConfigured <EOL> from django . db import models <EOL> class DummyField ( models . Field ) : <EOL> def __init__ ( self , dim = None , srid = None , geography = None , spatial_index = True , * args , ** kwargs ) : <EOL> super ( DummyField , self ) . __init__ ( * args , ** kwargs ) <EOL> try : <EOL> from django . contrib . gis . db import models <EOL> models . OriginalRasterField = models . RasterField <EOL> except ImproperlyConfigured : <EOL> models . GeometryField = DummyField <EOL> models . LineStringField = DummyField <EOL> models . MultiPointField = DummyField <EOL> models . MultiPolygonField = DummyField <EOL> models . PointField = DummyField <EOL> models . PolygonField = DummyField <EOL> models . RasterField = DummyField <EOL> try : <EOL> models . RasterField ( ) <EOL> except ImproperlyConfigured : <EOL> models . RasterField = DummyField </s>
