If you can't read please download the document
Upload
tuan-anh-tran
View
2.033
Download
0
Embed Size (px)
Citation preview
Slide 1
Introduction to
TRAN TUAN ANHskynetwork.org
LE VIET HONGdeltaviet.com
What is Django?
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Django makes it easier to build better Web apps more quickly and with less code.
The Web framework with perfectionists with deadlines.
Django Components
Models - Django ORM
Templates - Django Template Engine
Views - Python function, Request in Response out.
Think MTV instead of MVCURL Patterns - Regular expression basedLets Build a Project
spamstr/__init__.py
manage.py
settings.py
urls.py
./django-admin.py startproject exampleLets Build a Project
spamstr/person/
__init__.py
models.py
views.py
./manage.py startapp personmodels.py
models.py
models.py
Create Your Database
...
Creating table
peopleCreating table
phones
...
./manage.py syncdburls.py
views.py
views.py
index.html
./manage.py runserver
Administration
Administration
Thank Youhttp://www.djangoproject.comClick to edit the title text format
Click to edit the outline text format
Second Outline Level
Third Outline Level
Fourth Outline Level
Fifth Outline Level
Sixth Outline Level
Seventh Outline Level
Eighth Outline Level
Ninth Outline Level
Click to edit the notes format
Click to edit the notes format
Click to edit the title text format
Click to edit the outline text format
Second Outline Level
Third Outline Level
Fourth Outline Level
Fifth Outline Level
Sixth Outline Level
Seventh Outline Level
Eighth Outline Level
Ninth Outline Level
2009/12/13BarcampSaigondjango_normal.pngClick to edit the notes format
2009/12/13BarcampSaigondjango_normal.pngClick to edit the notes format