4 ms·
I also use Django and Postgres. For deployment (keeping things in sync) I use Git :) Set up your bare repository at say /root/myapp in your cloud server then
by sunstone 8y ago
I also use Django and Postgres. For deployment (keeping things in sync) I use Git :)
Set up your bare repository at say /root/myapp in your cloud server then clone this to your local dev area. Then clone it again to your cloud server django directories say /web/myapp . Finally git ignore you settings.py file so it can be different in each server.
This can actually scale up to reasonably sized prod/test/dev/local_dev cloud server setup by using appropriate branches though I know the traditionalists would be squirming in their seats.