0
Introduction to TRAN TUAN ANH skynetwork.org LE VIET HONG deltaviet.com
What is Django? <ul><li>Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic...
Django Components <ul><li>M odels - Django ORM </li></ul><ul><li>T emplates - Django Template Engine </li></ul><ul><li>V i...
Lets Build a Project spamstr/ <ul><ul><ul><li>__init__.py </li></ul></ul></ul><ul><ul><ul><li>manage.py </li></ul></ul></u...
Lets Build a Project spamstr/ <ul><ul><ul><li>person/ </li></ul></ul></ul><ul><ul><ul><li>__init__.py </li></ul></ul></ul>...
models.py
models.py
models.py
Create Your Database <ul><ul><ul><li>... </li></ul></ul></ul><ul><ul><ul><li>Creating table  </li></ul></ul></ul><ul><ul><...
urls.py
views.py
views.py
index.html
./manage.py runserver
Administration
Administration
Thank You http :// www.djangoproject.com
Upcoming SlideShare
Loading in...5
×

Introduction To Django

1,753

Published on

Introduction to Django by Tran Tuan Anh and Le Viet Hong.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,753
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
62
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Introduction To Django"

  1. 1. Introduction to TRAN TUAN ANH skynetwork.org LE VIET HONG deltaviet.com
  2. 2. What is Django? <ul><li>Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. </li></ul><ul><li>Django makes it easier to build better Web apps more quickly and with less code. </li></ul><ul><li>The Web framework with perfectionists with deadlines. </li></ul>
  3. 3. Django Components <ul><li>M odels - Django ORM </li></ul><ul><li>T emplates - Django Template Engine </li></ul><ul><li>V iews - Python function, Request in Response out. </li></ul>Think MTV instead of MVC URL Patterns - Regular expression based
  4. 4. Lets Build a Project spamstr/ <ul><ul><ul><li>__init__.py </li></ul></ul></ul><ul><ul><ul><li>manage.py </li></ul></ul></ul><ul><ul><ul><li>settings.py </li></ul></ul></ul><ul><ul><ul><li>urls.py </li></ul></ul></ul>./django-admin.py startproject example
  5. 5. Lets Build a Project spamstr/ <ul><ul><ul><li>person/ </li></ul></ul></ul><ul><ul><ul><li>__init__.py </li></ul></ul></ul><ul><ul><ul><li>models.py </li></ul></ul></ul><ul><ul><ul><li>views.py </li></ul></ul></ul>./manage.py startapp person
  6. 6. models.py
  7. 7. models.py
  8. 8. models.py
  9. 9. Create Your Database <ul><ul><ul><li>... </li></ul></ul></ul><ul><ul><ul><li>Creating table </li></ul></ul></ul><ul><ul><ul><li>peopleCreating table </li></ul></ul></ul><ul><ul><ul><li>phones </li></ul></ul></ul><ul><ul><ul><li>... </li></ul></ul></ul>./manage.py syncdb
  10. 10. urls.py
  11. 11. views.py
  12. 12. views.py
  13. 13. index.html
  14. 14. ./manage.py runserver
  15. 15. Administration
  16. 16. Administration
  17. 17. Thank You http :// www.djangoproject.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×