Home > Tech > Install Django on Ubuntu

Install Django on Ubuntu

As with most packages, you can install them in one of two ways.

  1. Through Ubuntu Repositories
  2. From Django Trunk (via subversion)

If we want the latest features and bug fixes the recommended is the second one!

To install through Django Trunk follow those steps:

  1. sudo aptitude install subversion
  2. Create a folder to download django source ( ex: mkdir /home/joao/sources )
  3. cd /home/joao/sources
  4. svn co http://code.djangoproject.com/svn/django/trunk/ django-trunk
  5. Lets create couple of symlinks:
    • sudo ln -s /home/joao/sources/django-trunk/django /usr/lib/python2.5/site-packages/django
    • sudo ln -s /home/joao/sources/django-trunk/django/bin/django-admin.py /usr/local/bin/django-admin.py

If you want to use Mysql with Django just do:

  • sudo aptitude install mysql-server python-mysqldb

For Postgres do:

  • sudo aptitude install postgresql python-psycopg2

And that’s it! Django installed 😀

Advertisements
Categories: Tech Tags: , ,
  1. November 18, 2010 at 13:24

    great tutorial, thanks for sharing. any other tutorial howto use djanggo for beginer?
    thanks

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: