The first issue that you must resolve is your project structure. Usually the difference between development and production environment is setting.py and url.py. So why do you separate them first? :) For example, you can have one main settings.py parameter, where you set all the standard settings that are common. Then at the end of the file, you simply import settings_dev.py and installting_prod.py for an example:
try: from settings_prod import * except ImportError: pass try: from settings_dev import * except ImportError: pass
Then simply you can overload all the necessary settings and user settings of the project (for example, installed applications). The same logic you can use for urls.py file.
Then you can simply ignore adding * _dev files to the repo and on the server side you can just check the code from the repo and restart the HTTP server. To automate this now, I cannot name the application name I need. Sometimes a simple python script may be a solution, for example: viewing if the datetime file has changed, and if so, just run the reload command for http.
Hope this helps.
Ignas
source share