Support / KnowledgeBase

 
Search the KnowledgeBase Search

Running two different sites from one (gc) Django GridContainer application

  • 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 and /home/#####/ are used as examples. 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.

 
Add both applications according to the existing documentation.  Each application must have different names and webpaths, but should have the same syspath.

Then, on any application that requires a different settings file, run this command:

mtd set_option <appname> fastcgi_options="--settings=settings-other" 


Run the generate_htaccess mtd command for each application:

mtd generate_htaccess <appname> 

Start the applications:

mtd start <appname> 

Notes/Supplemental Resources:


Revisions:


06-03-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