Introduction To Django
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Introduction To Django

  • 2,034 views
Uploaded on

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

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

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,034
On Slideshare
2,031
From Embeds
3
Number of Embeds
1

Actions

Shares
Downloads
56
Comments
0
Likes
1

Embeds 3

http://www.slideshare.net 3

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Introduction to TRAN TUAN ANH skynetwork.org LE VIET HONG deltaviet.com
  • 2. 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.
  • 3. Django Components
    • M odels - Django ORM
    • T emplates - Django Template Engine
    • V iews - Python function, Request in Response out.
    Think MTV instead of MVC URL Patterns - Regular expression based
  • 4. Lets Build a Project spamstr/
        • __init__.py
        • manage.py
        • settings.py
        • urls.py
    ./django-admin.py startproject example
  • 5. Lets Build a Project spamstr/
        • person/
        • __init__.py
        • models.py
        • views.py
    ./manage.py startapp person
  • 6. models.py
  • 7. models.py
  • 8. models.py
  • 9. Create Your Database
        • ...
        • Creating table
        • peopleCreating table
        • phones
        • ...
    ./manage.py syncdb
  • 10. urls.py
  • 11. views.py
  • 12. views.py
  • 13. index.html
  • 14. ./manage.py runserver
  • 15. Administration
  • 16. Administration
  • 17. Thank You http :// www.djangoproject.com