Django on Ubuntu

Django | The Web framework for perfectionists with deadlines

Settings it up:
sudo apt-get install django

Check out the options of the command django-admin

Start s project
hemanth@ubuntu:~/django$ django-admin startproject mysite
hemanth@ubuntu:~/django$ cd mysite
hemanth@ubuntu:~/django$ ls
This is the basis of the application => application we use to RUN certain commands. => The default settings file called, => It allows us to describe via a regex where to direct http requests.


hemanth@ubuntu:~/django/mystie$ ./ startapp myblog
hemanth@ubuntu:~/django/mystie$ cd myblog ; ls => runs when the app is loaded. => This is where we describe our database structure. => This is how we describe how our data is shown to the user.

Unlock admin panel

In [ uncommenting ]:
# from django.contrib import admin
# admin.autodiscover()
(remove the #)
and also from the #(r'^admin/',include(,

In [ INSTALLED_APPS should have 'django.contrib.admin'] :

SyncDB [ Create's if not present ]:

P.S : The must have DB detials, for the easy of it let it be sqllite3

hemanth@ubuntu:~/django/mysite$ ./ syncdb

Start Server

hemanth@ubuntu:~/mystie$ ./ runserver
Validating models...
0 errors found
Django version 1.2 alpha 1 SVN-12205, using settings 'mystie.settings'
Development server is running at
Quit the server with CONTROL-C.

Got to

P.S : For people in <3 with Drupal have look at pinax

Share this