I can't recommend the Two Scoops of Django method enough, if only
because it's made by people that deploy a lot and from sensible
suggestions.
1. Just a single code base, but with different branches if needed
(hence using DVCS). Then you commit once, and have no synchronisation
problems. Any issues in the dev code base you fix immediately it
doesn't work in staging or production
2. I have three sites - dev, staging, production, because you would
not believe the things I break on first deploy (to staging)
3. Each set up can happen on the same machine - but in different
Virtual Envs and wsgi files
4. settings.py becomes settings/base.py settings/dev.py settings
production.py settings/staging.py
5. the wsgi is generic, checked into codebase, then excluded in
.gitignore. Then each is changed - just that one line referencing
settings.
6. Different requirements.txt, to keep on top of which environments
are using which add ons. Production doesn't need django-debug, all
need python-ldap/django-auth-ldap, but only after the deployment of
ldap worked in dev, then staging...
Check out two scoops - I think it's chapters 3 and 4
cheers
L.
4.
--
You have to be really clever to come up with a genuinely dangerous
thought. I am disheartened that people can be clever enough to do that
and not clever enough to do the obvious thing and KEEP THEIR IDIOT
MOUTHS SHUT about it, because it is much more important to sound
intelligent when talking to your friends.
This post was STUPID.
-----------------------------------------------------------------------------------------------------------
The Most Terrifying Thought Experiment of All Time
http://www.slate.com/articles/technology/bitwise/2014/07/roko_s_basilisk_the_most_terrifying_thought_experiment_of_all_time.html