Sponsor
Now Playing
- Alix Perez – I'm Free 3 hours ago
- Alix Perez – Intersections 3 hours ago
- Alix Perez – Forsaken 3 hours ago
- Glen E Ston – Ouroboros (Original Mix) 3 hours ago
- Black Sun Empire – Everything 3 hours ago
Django and Subversion Hourly Updates
August 30, 2008,
42 views
So if you are developing with Django and python you may be running off the Django SVN trunk. It can be a pain constantly running the update command when you simply want to be up with the development. Of course you would run this on a development server and not a production server! But i have figured out a way to get Subversion to update the django trunk every hour. You can do this on a unix system or mac!
- Firstly you need to get into your superuser account and run the cron editor. this can be done via: sudo crontab -e
- You will be asked for your super user password. Next up find a new line in the editor, usually vi, and type this: 0 * * * * svn up /home/user/django_trunk/ >> /home/user/log.txt
- That’s it! Simply change the paths to match your system. So the /home/user/django_trunk would be the path to where you first installed the django trunk. The second path is where a log file will be produced to show you the updates that the subversion has updated django to.
If you would like to know how to install Django via subversion go to http://www.djangoproject.com/documentation/install/ and look down the bottom for installing development version!