[python-uk] Suggestions / best practices for deployment

Andy Robinson andy at reportlab.com
Mon May 20 17:12:09 CEST 2013


On 20 May 2013 14:51, Harry Percival <harry.percival at gmail.com> wrote:
> Also, question for django people:  static files, as collected by "manage.py
> collectstatic":  in the repo, or not?

No.  It's a deployment step.

It's REALLY useful to have a small set of "functional tests" which can
be run in a live web app.  For example, for an online purchase
process, you might have a selenium test which steps right through a
purchase using a known "only for tests" account or credit card number.
 And it's an absolute lifesaver to have a bunch of CSS/JS URLs you hit
to verify a 200, so you don't go live with half your javascript
missing due to some static/media mixup in a settings file.

Once you have something like this, you can quickly check that your
deployment (whether to UAT, staging or live) actually worked.

I don't know what this kind of testing is called though ;-)

- Andy


More information about the python-uk mailing list