8. GridFS (after)
>>> myfile = fs.new_file(location=[-74, 40.74])
>>> myfile.write("hello ")
>>> myfile.write("world,")
>>> myfile.writelines([" and have a ", "good day!"])
>>> myfile.close()
>>> out = fs.get(myfile._id)
>>> out.read()
'hello world, and have a good day!'
>>> out.location
[-74, 40.740000000000002]
22. Similar to +
• A lot of Django doesn’t depend on django.db:
• URL dispatch, templates, I18N, caching, etc.
• Some things do:
• Models
• Auth
• Sessions
• Admin
28. mango - sessions and auth
• Full sessions support
• mango provided User class
• supports is_authenticated(), set_password(), etc.
http://github.com/vpulim/mango