#NEWLINE# def prepare_db_command( self ) : #NEWLINE# #INDENT# if settings . POSTGIS_SPATIAL_REF : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# command = 'psql --username={adminuser} -c "CREATE EXTENSION postgis;"' #NEWLINE# if self . database_host : #NEWLINE# #INDENT# command = ( '%s --host={host}' % command ) #NEWLINE# #UNINDENT# if self . database_port : #NEWLINE# #INDENT# command = ( '%s --port={port}' % self ) #NEWLINE# #UNINDENT# return ( '%s {databasename}' % command )