Django overview

Django is a web development framework for Python in the same way Rails is a framework for Ruby. It is used by a number of major web sites, including Google (i.e., for the Google Application Engine), and can make developing rich web applications much easier.

Django is not an application on its own. You will need proficiency in Python programming in order to write an application using Django.

As of April 2015, DreamHost currently runs Django v1.3.1.

 

Setting up your User, Domain, and Database

Below are instructions for setting up Django using Passenger

  1. View the Enabling Shell Access article to set your user as a Shell user.
  2. Navigate to (Panel > ‘Domains’ > ‘Manage Domains’).
  3. Click the Edit button to the right of the domain under the ‘Web Hosting’ column.
  4. Scroll down to the ‘Web Options’ section and make sure the checkbox titled ‘Passenger (Ruby/NodeJS/Python apps only) is checked.

    Enabling passenger forces your web directory to add the /public folder. Once you save your changes in the next step, this /public folder will be your site's web directory. Move any files into it you wish to display online.

     

  5. Scroll down and click the blue Change settings button to save your new settings.
  6. Navigate to (Panel > ‘Goodies’ > ‘MySQL Databases’).
  7. Create a new blank database which will only be used for your Django app.
    • Visit the phpMyAdmin article for details on your hostname, username, and password.

See also