Ladypy 01

554 views

Published on

An introductory workshop for women into the world of Python and Django.

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

No Downloads
Views
Total views
554
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
8
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Python + various C libraries\n
  • Python + Boost (C++)\n
  • Python + Boost (C++)\n
  • Python + Boost (C++)\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Ladypy 01

    1. 1. PYTHON & DJANGO learn python and django basics
    2. 2. CALVIN CHENG www.calvinx.comwww.od-eon.com/blogs/calvin
    3. 3. LADYPY?
    4. 4. S1 Python & Django Basics S2 Models, ORM & Database S3 Deployment
    5. 5. SESSION 1
    6. 6. 1 Introduction to Python 2 Django Overview 3 django-admin.py
    7. 7. 4 manage.py 5 urls.py, views.py, templates 6 project structure
    8. 8. 7 organizing your ‘media’
    9. 9. 1Introduction to Python
    10. 10. Simple, powerful, object-oriented scripting language
    11. 11. Clear, readable syntaxStrong introspection capabilitiesIntuitive object orientationNatural expression of procedural codeFull modularity, supports hierarchal packagesException-based error handlingVery high-level dynamic typesExtensive standard libraries + Exhaustive 3rd party librariesExtensible to C and C++Embeddable within applications as scripting interface
    12. 12. Clear, readable syntax
    13. 13. Strong introspection capabilities (python shell)
    14. 14. Strong introspection capabilities (ipython shell)
    15. 15. Intuitive object orientation
    16. 16. Natural expression of procedural code
    17. 17. Full modularity, support for hierarchal packages
    18. 18. Full modularity, support for hierarchal packages
    19. 19. Exception-based error handling
    20. 20. Exception-based error handling
    21. 21. Very high-level dynamic types
    22. 22. Dynamic types?A language is considered to be dynamically typed when themajority of its type checking is done at run-time.Values have typeVariables do not have type“If it walks like a duck, and quacks like a duck, then it is a duck”
    23. 23. Extensive standard libraries + 3rd party libraries
    24. 24. Extensive standard libraries + 3rd party libraries
    25. 25. Extensible to C and C++
    26. 26. Extensible to C and C++
    27. 27. Extensible to C and C++
    28. 28. Extensible to C and C++EVE Online“Python enabled us to create EVE Online, a massive multiplayer game, in record time. The EVE Online server cluster runs over 50,000 simultaneous players in a shared space simulation, most of which is created in Python. The flexibilities of Python have enabled us to quickly improve the game experience based on player feedback” Hilmar Veigar Petursson CEO, Application developer & Project Manager CCP Games
    29. 29. Embeddable within applications as scripting interface
    30. 30. www.python.org
    31. 31. More Python propaganda. Hurrah! ;-) http://www.python.org/about/quotes/
    32. 32. Getting PythonWindows: binary download and installation from python.orgMac: Package manager homebrew / macports / fink etcLinux/Unix: Package manager (e.g. aptitude, pacman, emerge, rpm)
    33. 33. 2Django Overview
    34. 34. DEEG)0#H4#%/) *G<IEJ)KLE3)) DEEG)0#%-.%#) 401%&() *M3)*401)5#6."7-.%3) !"#$%&() *Q3) A&B/C1) *+,-./0-11#023) *DE>F)/#C1:/#3) *N3) *P3) *O3) C-5#1%&() 89):;.-%7,)<=>) ?,/4:1) 8:/:@:%#)
    35. 35. Getting DjangoWindows: via PIP or python setup.py installMac: via PIP or python setup.py installLinux/Unix: ditto
    36. 36. 3django-admin.py
    37. 37. Start point for beginnersdjango-admin.py startproject yourprojectname
    38. 38. 4manage.py & settings.py
    39. 39. Start point for beginners./manage.py startapp yourappname
    40. 40. 5urls.py, views.py, template
    41. 41. DEEG)0#H4#%/) *G<IEJ)KLE3)) DEEG)0#%-.%#) 401%&() *M3)*401)5#6."7-.%3) !"#$%&() *Q3) A&B/C1) *+,-./0-11#023) *DE>F)/#C1:/#3) *N3) *P3) *O3) C-5#1%&() 89):;.-%7,)<=>) ?,/4:1) 8:/:@:%#)
    42. 42. urls.py
    43. 43. views.py
    44. 44. an example django template
    45. 45. 6project structure
    46. 46. 7organizing your ‘media’
    47. 47. Organizing static and media files
    48. 48. Collecting static files from “django apps”./manage.py collectstatic./manage.py collectstatic --noinput
    49. 49. 8What’s next? Session 2
    50. 50. S1 Python & Django Basics S2 Models, ORM & Database S3 Deployment
    51. 51. https://groups.google.com/forum/#!forum/ladypy

    ×