Support / KnowledgeBase

 
Search the KnowledgeBase Search

Switching between official and SVN versions of Django

  • Applies to: (gs)

  • Difficulty: Medium

  • Time needed: 5 minutes

  • Tools needed: None

 

This article has the following dependencies:

  • If you currently do not have your Django GridContainer enabled you will need to have one in order to complete the steps in this article. You can add a container from within the AccountCenter.
  • Whenever installing Third-Party software please consult the official documentation. (mt) Media Temple does not support the installation and configuration of software not installed at time of service activation. For issues that fall outside of our Scope of Support, we recommend checking our User Forums and searching on Google for possible avenues of resolution.
  • mt-example.com is used as an example. Please be sure to replace this text with the proper information for your site or server.
  • GridContainer technology allows you to process frameworks such as Django or Ruby on Rails in an isolated environment. Make sure that you have RAM appropriate to the needs of your application. Not having enough resources can cause memory problems and instability in your application.  

 Using svn version

STOP:

  • This command will COMPLETELY remove the /home/#####/data/python/django directory and replace it with the latest bleeding edge version of Django from the subversion repository at http://code.djangoproject.com/svn/django/trunk/
  • Whenever switching between releases please be aware that any custom modifications will be lost!  Make sure you have backed up your applications and environment when needed.

The following command will switch to the subversion trunk version of Django.

mtd switch_to_svn 


Once you have switched to subversion Django, there is no need to run this command again in order to get the latest changes from the Django developers.  Simply run the following command in the /home/#####/data/python/django directory:

cd /home/#####/data/python/django
svn update


Using official version

In the event that you ever want to switch back to the officially released version of django please run the following command.  This command will completely remove the /home/#####/data/python/django directory and replace it with the latest released version:

mtd switch_to_released 



Revisions:

03-12-2009: Article Creation

User Comments

No visitor comments posted. Post a comment

Fields marked with an asterisk(*) are required. Comment on this article

Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue