<div dir="ltr">Hi Harry (and list)<div><br></div><div style>First - I think you should separate out provisioning (setting up the server and all the dependencies and maybe the initial install) from deployment (repeatedly updating the site based on the latest codebase and db migrations etc). </div>
<div style><br></div><div style>Secondly - my experience (which may not be very helpful). In the past, I've used chef to provision configure a rackspace / amazon box, and have customized recipes for python / virtualenv install. I then use a capistrano to deploy the code changes for django . Very little customization is needed for django (as opposed to rails) interestingly, because capistrano is pretty well thought through. Nonetheless it's not a common practice in django/python communities (cause cap was written for rails and is in ruby, I imagine). </div>
<div style><br></div><div style>Would argue that the concept of best practice lite doesn't make sense! It all depends on the constraints and what is the most pressing issue right now. In the context of TDD + python, the best practice lite, might well be (pace your introduction) to use PythonAnywhere or maybe GAE, mightn't it… If you're teaching TDD +ruby, then I'd say best practice lite would be to use heroku.</div>
<div style><br></div><div style>T</div><div style><br></div><div style>PS: planning to use PythonAnywhere to teach python to secondary school kids, but I'll maybe contact you separately about that...</div><div style><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 15 May 2013 10:57, Harry Percival <span dir="ltr"><<a href="mailto:harry.percival@gmail.com" target="_blank">harry.percival@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Dear UK Python chums,<br><br></div>some of you probably know I'm writing a book about TDD for O'Reilly.  I'm looking for some help with the (first) chapter on deployment.<br>
<br><a href="http://www.obeythetestinggoat.com/what-to-say-about-deployment.html" target="_blank">http://www.obeythetestinggoat.com/what-to-say-about-deployment.html</a><br>

<br></div>What do you use for deployment?  Do you have any kind of automated scripts? How do you manage virtualenvs, the database, apache/uwsgi config... What do you think might work as a sort of "best practice lite" for a simple site for beginners?  (django, sqlite database, static files)<span class="HOEnZb"><font color="#888888"><br clear="all">


<div><div><div><br>-- <br>------------------------------<br>Harry J.W. Percival<br>------------------------------<br>Twitter: @hjwp<br>Mobile:  <a href="tel:%2B44%20%280%29%2078877%2002511" value="+447887702511" target="_blank">+44 (0) 78877 02511</a><br>
Skype:         harry.percival
</div></div></div></font></span></div>
<br>_______________________________________________<br>
python-uk mailing list<br>
<a href="mailto:python-uk@python.org">python-uk@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-uk" target="_blank">http://mail.python.org/mailman/listinfo/python-uk</a><br>
<br></blockquote></div><br></div>