Support / KnowledgeBase

 
Search the KnowledgeBase Search

Setting Up Your (gc) Django GridContainer

  • Applies to: (gs)

  • Difficulty: Medium

  • Time needed: 5 minutes

  • Tools needed: Django GridContainer

 

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.
  1. Set up the base Python libraries:
  2. mtd setup_pylibs

    This installs into /home/#####/data/python the following libraries:

    • ez_setup
    • MySQL_python
    • psycopg2
    • flup
    • Pygments
    • docutils

    It also updates your .bash_profile and .pydistutils.cfg to point to this directory.

  3. Load the new Environment.

    This is only necessary if done right after above commands.  Future logins to your (gs) Grid-Service will do this automatically.

    source .bash_profile 


Congratulations!  Your Django environment is all set up.

Notes/Supplemental Resources:

Revisions:

08-26-2009: Fixed link in notes
05-30-2008: 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