title: How to use use_library('django','1.2')
body: <p>I'm learning developing in Google App Engine.</p>
  
  <p>This is one of the code from the tutorial, <a href="http://code.google.com/appengine/docs/python/gettingstarted/usingwebapp.html" rel="nofollow">http://code.google.com/appengine/docs/python/gettingstarted/usingwebapp.html</a></p>
  
  <pre><code>from google.appengine.ext import webapp
  from google.appengine.ext.webapp.util import run_wsgi_app
  
  class MainPage(webapp.RequestHandler):
      def get(self):
          self.response.headers['Content-Type'] = 'text/plain'
          self.response.out.write('Hello, webapp World!')
  
  application = webapp.WSGIApplication(
                                       [('/', MainPage)],
                                       debug=True)
  
  def main():
      run_wsgi_app(application)
  
  if __name__ == "__main__":
      main()
  </code></pre>
  
  <p>I've almost identical code. I sometime get warning:</p>
  
  <blockquote>
    <p>WARNING  2011-06-30 13:10:44,443 <strong>init</strong>.py:851] You are using the default Django version (0.96). The default Django version will change in an App Engine release in the near future. Please call use_library() to explicitly select a Django version. For more information see <a href="http://code.google.com/appengine/docs/python/tools/libraries.html#Django" rel="nofollow">http://code.google.com/appengine/docs/python/tools/libraries.html#Django</a></p>
  </blockquote>
  
  <p>Can anyone please re factor the above code with use_library(). I'm not sure how to start and where to use use_library and what to do with webapp.</p>
  
  <p>Thanks in advance.</p>