- 1 c. light-brown sugar
- 1 tbsp. cornstarch
- 0.5 tsp. salt
- 1 tsp. ground ginger
- 1 tsp. ground cinnamon
- pinch ground cloves
- 1.5 c. fresh Pumpkin Puree or canned
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
import csv | |
from django.http import HttpResponse | |
def export_as_csv_action(description="Export selected objects as CSV file", fields=None, exclude=None, header=True): | |
""" | |
This function returns an export csv action | |
'fields' and 'exclude' work like in django ModelForm | |
'header' is whether or not to output the column names as the first row | |
""" | |
def export_as_csv(modeladmin, request, queryset): |
We can't make this file beautiful and searchable because it's too large.
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
Name,Artist,Album,Track Number | |
""Can't Repeat The Past?"","Leonardo Dicaprio, Tobey Maguire","Music From Baz Luhrmann's Film The Great Gatsby (Deluxe Edition)","10" | |
""Gatsby Believed In The Green Light"","Tobey Maguire, Craig Armstrong","Music From Baz Luhrmann's Film The Great Gatsby (Deluxe Edition)","21" | |
""I Like Large Parties"","Elizabeth Debicki","Music From Baz Luhrmann's Film The Great Gatsby (Deluxe Edition)","7" | |
""In The Case Django, After You..."","Christoph Waltz, Jamie Foxx","Quentin Tarantino’s Django Unchained Original Motion Picture Soundtrack","4" | |
""In mir klingt ein Lied" (After Chopin Étude in E major, Op.10 No.3)","Joseph Calleja, BBC Concert Orchestra, Steven Mercurio","Amore","18" | |
""Net, tolko tot, kto znal" (None But The Lonely Heart); Op.6, No.6","Joseph Calleja, BBC Concert Orchestra, Steven Mercurio","Amore","17" | |
"#34","Dave Matthews Band","Under the Table and Dreaming (Expanded Edition)","12" | |
"#36","Dave Matthews Band","Live At Red Rocks 8.15.95","14" | |
"#41","Dave Matthews Band","Cras |
2. Google's Material Design uses our physical world to guide how it shows elements, e.g., depth and movement. How do you think this affects Google's products?
Email to [email protected]
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
CLASSES = [u'A&D Architectural Drawing', u'A&D Architectural Model', u'Media', u'Textile', u'Film (object)', u'Print', u'Performance', u'A&D Photograph', u'Multiple', u'Painting', u'Illustrated Book', u'Photography Research/Reference', u'A&D Mies van der Rohe Archive', u'Photograph', u'Installation', u'A&D Graphic Design', u'(not assigned)', u'Audio', u'Sculpture', u'Drawing', u'Collage', u'A&D Design', u'Video', u'Work on Paper', u'Periodical', u'Film'] | |
DEPARTMENTS = [u'Photography', u'Fluxus Collection', u'Painting & Sculpture', u'Drawings', u'Prints & Illustrated Books', u'Architecture & Design', u'Media and Performance Art', u'Architecture & Design - Image Archive', u'Film'] |
Okay, first, let's add a route to your app.py
. A route ties a URL path, in this case "/" which means "the base URL of my web site", to a function that renders and returns a template.
URL => function => template => response to the client
from flask import Flask, render_template, request
from models import Artwork
app = Flask(__name__)
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
[{"price": 74.99, "detail_url": "https://www.chambersstwines.com/Products/35902/achino-nv-amaro-elixir-di-china-1-l", "name": "Achino NV Amaro Elixir di China 1 L"}, {"price": 49.99, "detail_url": "https://www.chambersstwines.com/Products/35903/acossato-amaro-camomilla-1-l", "name": "Acossato Amaro Camomilla 1 L"}, {"price": 149.99, "detail_url": "https://www.chambersstwines.com/Products/35904/alpicella-amaro-32-herbs-1-l", "name": "Alpicella Amaro 32 Herbs 1 L"}, {"price": 59.99, "detail_url": "https://www.chambersstwines.com/Products/35905/americano-tom-amaro-rabarbaro-1-l", "name": "Americano Tom Amaro Rabarbaro 1 L"}, {"price": 59.99, "detail_url": "https://www.chambersstwines.com/Products/35907/barbieri-amaro-elixir-di-china-1-l", "name": "Barbieri Amaro Elixir di China 1 L"}, {"price": 59.99, "detail_url": "https://www.chambersstwines.com/Products/35908/blasius-amaro", "name": "Blasius Amaro"}, {"price": 49.99, "detail_url": "https://www.chambersstwines.com/Products/35909/bonomelli-amaro-elixir-camonmil |
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
Segal-Cover data updated and backdated by Jeffrey Segal in 2012. Originally published as Jeffrey Segal and Albert Cover, “Ideological Values and the Votes of Supreme Court Justices,” American Political Science Review 83:557-565 (1989) | |
Original data table here: http://www.stonybrook.edu/commcms/polisci/jsegal/QualTable.pdf | |
SCDB justice data updated by the Supreme Court Database at Washington University in St. Louis. Harold J. Spaeth, Lee Epstein, Andrew D. Martin, Jeffrey A. Segal, Theodore J. Ruger, and Sara C. Benesh. 2016 Supreme Court Database, Version 2015 Release 02. URL: http://Supremecourtdatabase.org | |
Original data table here: http://scdb.wustl.edu/documentation.php?var=justice |