Introduction To Django

  • 6,438 views
Uploaded on

Slides from the Introduction to Django presentation at Refresh Denver.

Slides from the Introduction to Django presentation at Refresh Denver.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • I am new to django and in this tutorial, forms were mentioned but not defined. can you please add those forms please tell where to keep these forms in django project.
    Thanks.
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
6,438
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
364
Comments
1
Likes
10

Embeds 0

No embeds

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
  • 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
    • Models - Django ORM
    • Templates - Django Template Engine
    • Views - Python function, Request in Response out.
    Think MTV instead of MVC URL Patterns - Regular expression based
  • 4. Lets Build a Project ./django-admin.py startproject spamstr
    • spamstr/
      • __init__.py
      • manage.py
      • settings.py
      • urls.py
  • 5. Lets Add an App ./manage.py startapp person
    • spamstr/
      • person/
        • __init__.py
        • models.py
        • views.py
  • 6. models.py
  • 7. models.py
  • 8. models.py
  • 9. Create Your Database ./manage.py syncdb
        • ...
        • Creating table peopleCreating table phones
        • ...
  • 10. urls.py
  • 11. views.py
  • 12. views.py
  • 13. index.html
  • 14. ./manage.py runserver
  • 15. Admin
  • 16. Admin
  • 17. Thank You Django - http://www.djangoproject.com / spamstr-django http://github .com/skabber/spamstr-django/