DJANGO: Web Framework for Perfectionists
Formal boring Introduction
Equipped with:
ORM
Administration Site
Development tools
Templates
Form Validation
Authentication
Pluggable ...
Ladies And Gentlemen
● Start your project, by this command:
django-admin.py startproject project_name
● Some new files are generated:
– __init__.py
– manage.py
– settings.py
– urls.py
Create your application within
your Project
● python manage.py startapp app_name
● Include your app in the project by modifying
settings.py
Models ???
Models... (2)
● Ok, it's not related to fashion models.
● Model refers to the data access layer ( database)
● Example of a django model:
class post(models.Model):
author = models.CharField(max_length = 30)
title = models.CharField(max_length = 300)
bodytext = models.TextField()
Connecting DB to your Django
Project
● Alter settings.py
● python manage.py syncdb
Some tweaking
● STATICFILES_DIRS
● TEMPLATE_DIRS
MTV ??? (Sigh.. bear with me)
MTV (2)...
Thank You!
● Find the demo code at
https://github.com/psibi/ilugc-talk-django
● Contact mail: sibi@psibi.in
● QUESTIONS ???

Django talk