View stunning SlideShares in full-screen with the new iOS app!Introducing SlideShare for AndroidExplore all your favorite topics in the SlideShare appGet the SlideShare app to Save for Later — even offline
View stunning SlideShares in full-screen with the new Android app!View stunning SlideShares in full-screen with the new iOS app!
TIPS Projects vs. apps A project can contain multiple apps. An app can be in multiple projects. Philosophy A model is the single, definitive source of data about your data. It contains the essential fields and behaviors of the data youre storing. Django follows the DRY Principle. The goal is to define your data model in one place and automatically derive things from it. 6/20
Activating models Create a database schema (CREATE TABLE statements) for this app. Create a Python database-access API for accessing Poll and Choice objects. settings.py: INSTALLED_APPS 加 上 mysite.polls python manage.py sql polls python manage.py syncdb 7/20