TurnKey Linux Virtual Appliance Library

Does Django Appliance support more than one website?

Does the Django appliance allow for more than one Django website?  Out of the box, it seems configured for one but I wanted to host more than one, potentially.  Also, is the appliance ready for production out of the box?

Alon Swartz's picture

The short answer - yes

Firstly, sorry for the late reply, been busy with business as well as personal stuff - got married :)

Lets first get the Django terminology out of the way:
Projects vs. apps

An app is a Web application that does something -- e.g., a weblog system,
a database of public records or a simple poll app. A project is a collection
of configuration and apps for a particular Web site. A project can 
contain multiple apps. An app can be in multiple projects.
The django appliance is already set up with a "project" ready to hold your apps - located at /var/www/django-sites/apps.

Creating apps in the project are as simple as changing into the /var/www/django-sites/apps directory and running:
./manage.py startapp new_appname

If what you want is to host multiple projects, you will have to update the webserver configuration at /etc/apache2/sites-available/django-sites. I have never setup multiple projects on the same server before, but shouldn't be too difficult with a bit of tinkering.

I hope the above helps, if you have any problems let us know and be as verbose as possible.

Regarding your second question about whether TurnKey Appliances are ready for production, please take a look at liraz's comments 136 and 137 on the subject.

HELP

I'm trying to set up hosting for multiple projects, but can't figure out how this can be done on TurnkeyDjango.... looking to the /etc/apache2/sites-available/django-sites configuration I can't find nothing helpful, since there is no settings for apps... but only for http-docs...

Where is the setting that makes apache point to django-sites/apps?

Please help!

Alon Swartz's picture

No need to ask the same question in multiple threads

I answered your question in this thread.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)