Commits

Dmitri Lebedev committed 83865b3

simpler webfaction script syntax

  • Participants
  • Parent commits 7cf71cc

Comments (0)

Files changed (1)

 cmds =
 	rm djangopaths.py
 	ln -s bin/django djangopaths.py
-	echo "import os" >> ${buildout:project}.wsgi
-	echo "import djangopaths" >> ${buildout:project}.wsgi
-	echo "from django.core.handlers.wsgi import WSGIHandler"  >> ${buildout:project}.wsgi
-	echo "" >> ${buildout:project}.wsgi
-	echo "os.environ['DJANGO_SETTINGS_MODULE'] = '${buildout:project}.production'"  >> ${buildout:project}.wsgi
-	echo "application = WSGIHandler()"  >> ${buildout:project}.wsgi
+	cat > ${buildout:project}.wsgi <<EOF
+	import os
+	import djangopaths
+	from django.core.handlers.wsgi import WSGIHandler
+
+	os.environ['DJANGO_SETTINGS_MODULE'] = '${buildout:project}.production'
+	application = WSGIHandler()
+
+	EOF
 
 
 [yuic]