@cmdopts([('bind=', 'b', 'Bind server to provided IP address and port number.')])
@task
def start_django():
 bind = options.get('bind', '')
 foreground = ('' if options.get('foreground', False) else '&')
 sh(('python manage.py runserver %s %s' % (bind, foreground)))

@ cmdopts ( [ ( 'bind=' , 'b' , 'Bind server to provided IP address and port number.' ) ] ) @ task def start_django ( ) : bind = options . get ( 'bind' , '' ) foreground = ( '' if options . get ( 'foreground' , False ) else '&' ) sh ( ( 'python manage.py runserver %s %s' % ( bind , foreground ) ) )
start the geonode django application .