My vocation is more in composition really than anything else — building up harmonies using the guitar, orchestrating the guitar like an army, a guitar army.
Jimmy Page

Sticks and stones may break my bones, but words will make me go in a corner and cry by myself for hours.
Eric Idle

The world is a tragedy to those who feel, but a comedy to those who think.
Horace Walpole

Men show their character in nothing more clearly than what they think laughable.
Johann von Goethe

You can find lots of good information at the Django Project.  I will be following one of the options in the installation guide.  First I will download the latest django, here and save into my newly create django folder in my home directory.

After unzipping the package, run the set up to install django.

Change the current directory to your home folder.  Then, test the django install.

What database to you want to use?  Chose one or more of the following installs(sqlite, mysql, postgresql):

  • sudo apt-get install python-sqlite
  • sudo apt-get install python-mysqldb
  • sudo apt-get install python-pgsql

Let’s test django by making a project.  Do NOT put your code under /var/www.  For security reasons, this is the django way.  In the example, I have create a new folder djcode.  Then, I created the project helloworld with the command django-admin.py startproject helloworld.  After changing into the new helloworld folder,  start the web server, python manage.py runserver and goto http://localhost:8000 with your web browser.

Tags: ,

1 Comment on Python with Django

  1. quick & easy
    lot of thanks !!!

Leave a Reply


*