Home
How install your own Django (dreamhost.com)
Written by Administrator   
Wednesday, 18 March 2009

Prepare

We’ll need to configure your Dreamhost account for use with Django. DreamHost  have FastCGI support.

  • Log into your DreamHost Web Admin Panel
  • Click on Domains / Manage Domains
  • Click Edit under the Web Hosting column for the domain that you wish to use with Django "mydomain.com"
  • Ensure that the FastCGI Support option is enabled. If not, click the box to enable it and then click Change "fully hosted settings now!"
  • Enable SSH access and request the default bash shell
For Windows (ssh client):
  • Free: WinSCP is an open source free SFTP client for Windows using SSH

Create a MySQL database

Need to setup a MySQL database to use with Django. Follow these steps:

  • In the Dreamhost administration panel, choose “manage MySQL” under the Goodies menu.
  • Enter a database name for your new database. I’ve chosen django_db and will be using that name in the tutorial.
  • Enter a hostname for your database server. 
  • Enter a username and password for your database.
  • Click the “Add new database now!” button.

Create a directories

  • SSH into your Dreamhost server.
  • Go your $HOME directory
  • Make a new directory for Django: mkdir django
  • Change into your new directory: cd django
  • Create directories for templates and projects: mkdir django_templates and mkdir django_projects
  • Create a directory to store your media files (css, images, javascript, etc.).
Last Updated ( Wednesday, 18 March 2009 )
Read more...
 
How to use Cron TABle (Dreamhost.com)
Written by Administrator   
Wednesday, 06 February 2008

Cron is a unix utility that allows tasks to be automatically run in the background at regular intervals by the cron daemon.

Crontab (CRON TABle) is a file which contains the schedule of cron entries to be run and at specified times.

How to use Cron (Dreamhost.com

  • You'll need to enable shell access (SSH) before you can modify your crontab
  • Crontab file: Create and Edit
  • Generate log file
  • Example
  • Run php from cron


*     *   *   *    *  command to be executed
-     -    -    -    -
|     |     |     |     |
|     |     |     |     +----- day of week (0 - 6) (Sunday=0)
|     |     |     +------- month (1 - 12)
|     |     +--------- day of month (1 - 31)
|     +----------- hour (0 - 23)
+------------- min (0 - 59)
Last Updated ( Wednesday, 06 February 2008 )
Read more...
 
Promo Code Dreamhost: BVV
Written by Dreamhost Promocode   
Wednesday, 06 February 2008

DreamHost provides web hosting, dedicated server and domain name registration services to more than 600,000 domains worldwide.

DreamHost is really too good to be true. Great performance. Massive storage and bandwidth allowance.  Developer-friendly. All these at a very affordable price, and those zealots just want you to have it even cheaper! 

The company offers customized service plans for hobbyists, creative professionals and small businesses starting at $7.95/month.

Update: Dreamhost policy change $50 is the maximum discount any promotional code!

Use promo code "BVV" for ~50% off.

Get the maximum discount. Free setup. Go Dreamhost Order Page. Save money!

Last Updated ( Thursday, 02 April 2009 )
Read more...
 
<< Start < Prev 1 2 3 Next > End >>

Results 5 - 8 of 12