Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Introduction to
What is Django? <ul><li>Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic...
Django Components <ul><li>Models - Django ORM </li></ul><ul><li>Templates - Django Template Engine </li></ul><ul><li>Views...
Lets Build a Project ./django-admin.py startproject spamstr <ul><li>spamstr/ </li></ul><ul><ul><li>__init__.py </li></ul><...
Lets Add an App ./manage.py startapp person <ul><li>spamstr/ </li></ul><ul><ul><li>person/ </li></ul></ul><ul><ul><ul><li>...
models.py
models.py
models.py
Create Your Database ./manage.py syncdb <ul><ul><ul><li>... </li></ul></ul></ul><ul><ul><ul><li>Creating table peopleCreat...
urls.py
views.py
views.py
index.html
./manage.py runserver
Admin
Admin
Thank You Django - http://www.djangoproject.com / spamstr-django http://github .com/skabber/spamstr-django/
Upcoming SlideShare
Loading in …5
×

Introduction To Django

14,343 views

Published on

Slides from the Introduction to Django presentation at Refresh Denver.

Published in: Technology
  • 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.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Introduction To Django

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

×