add some more custom config and put every thing in comment in the custom.yaml template
#!/bin/bash
ROOTPATH="/srv/comt"
TMPFILE=`mktemp`
pushd "$ROOTPATH" > /dev/null
nohup bin/django testserver --noinput --addrport=0.0.0.0:<%= @testserver_port %> initial_data roles_generic test_suite > $TMPFILE 2>&1 &
echo "$!|$TMPFILE" > /tmp/testserver.pid
cat /tmp/testserver.pid
popd > /dev/null