Day 25: Tuesday, April 8, 2014ΒΆ

  1. Read and

  2. Fill out the quiz

  3. Discussion.

  4. Git exercises from Day 24: Thursday, April 3, 2014.

  5. Other stuff

    SQL loading & Python modules.

    1. See setup() in imageapp/ (link); this contains stuff that you only run once an app. It’s in a function so you can choose to run it or not to run it (e.g. for tests)
    2. See imageapp/ (link). The ‘images = {}’ will be run on import, no matter what you do. There’s no way to disable it, in particular.

    tl;dr? Almost always put code in a function.

    Q: where should you put database creation/data model definition code? (See sqlite/ (link on day23 branch)

    More git reading:

    A quest for understanding Web stuff:

Previous topic

Homework 12

Next topic

Homework 11

This Page

Edit this document!

This file can be edited directly through the Web. Anyone can update and fix errors in this document with few clicks -- no downloads needed.

  1. Go to Day 25: Tuesday, April 8, 2014 on GitHub.
  2. Edit files using GitHub's text editor in your web browser (see the 'Edit' tab on the top right of the file)
  3. Fill in the Commit message text box at the bottom of the page describing why you made the changes. Press the Propose file change button next to it when done.
  4. Then click Send a pull request.
  5. Your changes are now queued for review under the project's Pull requests tab on GitHub!

For an introduction to the documentation format please see the reST primer.