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.
Git, Python, Django, Heroku



                 Startup Camp
               Trhový Štěpánov

                 Juraj Michál...
Obsah



         Git

        Python

        Django

        Heroku
Git

      Remote repository



      Local repository



      Stage


      Working area
Git - clone

     Remote repository


                         clone
     Local repository



     Stage


     Working ar...
Git - add

    Remote repository



    Local repository



     Stage
                        add


     Working area
Git - commit

    Remote repository



    Local repository
                        commit


     Stage


     Working area
Git - push

    Remote repository
                        push


    Local repository



     Stage


     Working area
Git – operations

    Remote repository
                        clone            push


    Local repository
             ...
TortoiseGit




       http://code.google.com/p/tortoisegit/
GitHub
Python




         http://python.org
Guido van Rossum




     Computer programming for everybody.
Monty Python's Flying Circus




                        Spam & Eggs
Go web




         python -m SimpleHTTPServer
Python Shell




   Lin/Mac – CTRL+D, Win – CTRL+Z – terminate
                     exit()
IDLE (Python GUI)
Python 2 or 3?




         2.x stable, libraries, frameworks


      3.x new syntax, missing part of legacy
Import & Python 3




              import antigravity
Django




            http://djangoproject.com

      The Web framework for perfectionists
                (with deadline...
Python 2 in Django context




         Experimental Python 3 support


          Recommended: Python 2.7
Sample Django




        https://github.com/georgik/try_git



   git clone git@github.com:georgik/try_git.git
Start sample Django

 cd try_git
 cd hellodjango


 python manage syncdb
 python manage.py runserver



 http://localhost:...
Python/Django advanced
Programming philosophy



          Multi-paradigm prog. Lang.


        Object Orientated Programming
           Structur...
IDE

      ●   IntelliJ Idea or PyCharm


      ●   Eclipse – pyDev


      ●   Boa Constructor ;-)


      ●   etc...
Python 01-bootstrap examples




                  Print

                  Input

                Arguments
Python 02-data examples




                   List

                Dictionary

                  Excel
Virtualenv




             http://www.virtualenv.org


              Isolated environment
easy_install (old fashioned)




             Win: Python27Scripts


                easy_install pip
pip




         pip install virtualenv


      http://pypi.python.org/pypi
Sqlite browser




 http://sourceforge.net/projects/sqlitebrowser/files/
Templates – Wat?


TEMPLATE_DIRS = (
  # Put strings here, like "/home/html/django_templates" or
"C:/www/django/templates"...
Templates

 import os
 import django

 SITE_ROOT = os.path.dirname(os.path.realpath(__file__))

 TEMPLATE_DIRS = (
   os.p...
cURL




       http://curl.haxx.se/
Test




       curl http://localhost
Heroku




         Heroku Toolbelt
Startup Camp - Git, Python, Django session
Upcoming SlideShare
Loading in …5
×
Upcoming SlideShare
Using Python on Heroku and Force.com Canvas to Enhance Salesforce.com
Next
Download to read offline and view in fullscreen.

0

Share

Startup Camp - Git, Python, Django session

Download to read offline

Startup Camp session related to qu

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

Startup Camp - Git, Python, Django session

  1. 1. Git, Python, Django, Heroku Startup Camp Trhový Štěpánov Juraj Michálek 25. 8. 2012 http://georgik.sinusgear.com http://twitter.com/sinusgear
  2. 2. Obsah Git Python Django Heroku
  3. 3. Git Remote repository Local repository Stage Working area
  4. 4. Git - clone Remote repository clone Local repository Stage Working area
  5. 5. Git - add Remote repository Local repository Stage add Working area
  6. 6. Git - commit Remote repository Local repository commit Stage Working area
  7. 7. Git - push Remote repository push Local repository Stage Working area
  8. 8. Git – operations Remote repository clone push Local repository commit Stage add Working area
  9. 9. TortoiseGit http://code.google.com/p/tortoisegit/
  10. 10. GitHub
  11. 11. Python http://python.org
  12. 12. Guido van Rossum Computer programming for everybody.
  13. 13. Monty Python's Flying Circus Spam & Eggs
  14. 14. Go web python -m SimpleHTTPServer
  15. 15. Python Shell Lin/Mac – CTRL+D, Win – CTRL+Z – terminate exit()
  16. 16. IDLE (Python GUI)
  17. 17. Python 2 or 3? 2.x stable, libraries, frameworks 3.x new syntax, missing part of legacy
  18. 18. Import & Python 3 import antigravity
  19. 19. Django http://djangoproject.com The Web framework for perfectionists (with deadlines). Django makes it easier to build better Web apps more quickly and with less code.
  20. 20. Python 2 in Django context Experimental Python 3 support Recommended: Python 2.7
  21. 21. Sample Django https://github.com/georgik/try_git git clone git@github.com:georgik/try_git.git
  22. 22. Start sample Django cd try_git cd hellodjango python manage syncdb python manage.py runserver http://localhost:8000/admin
  23. 23. Python/Django advanced
  24. 24. Programming philosophy Multi-paradigm prog. Lang. Object Orientated Programming Structured Programming Functional Programming Aspect Oriented Programming
  25. 25. IDE ● IntelliJ Idea or PyCharm ● Eclipse – pyDev ● Boa Constructor ;-) ● etc...
  26. 26. Python 01-bootstrap examples Print Input Arguments
  27. 27. Python 02-data examples List Dictionary Excel
  28. 28. Virtualenv http://www.virtualenv.org Isolated environment
  29. 29. easy_install (old fashioned) Win: Python27Scripts easy_install pip
  30. 30. pip pip install virtualenv http://pypi.python.org/pypi
  31. 31. Sqlite browser http://sourceforge.net/projects/sqlitebrowser/files/
  32. 32. Templates – Wat? TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. )
  33. 33. Templates import os import django SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) TEMPLATE_DIRS = ( os.path.join(SITE_ROOT, 'templates') ) 7 tips for Python & Django - http://goo.gl/svZ5O
  34. 34. cURL http://curl.haxx.se/
  35. 35. Test curl http://localhost
  36. 36. Heroku Heroku Toolbelt

Startup Camp session related to qu

Views

Total views

2,199

On Slideshare

0

From embeds

0

Number of embeds

798

Actions

Downloads

12

Shares

0

Comments

0

Likes

0

×