Created
          July 20, 2011 20:47 
        
      - 
      
- 
        Save clyfe/1095892 to your computer and use it in GitHub Desktop. 
    Python nifty useful snippets I learned at pybucuresti and want to remember next time I need them
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # stop the execution and open a debug console | |
| import pdb; pdb.set_trace() | |
| # inspect the object (what names it defines, as in methods) | |
| dir(object) | |
| # inspect the object more (the dictionary of attributes, as in properties) | |
| dir(object.__dict__) # or something like that | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
http://blog.abhiomkar.in/2011/09/17/deploying-django-on-heroku-mac-os-x/