Accelerating Information Technology Innovation
|
|
- Natalie Nichols
- 5 years ago
- Views:
Transcription
1 Accelerating Information Technology Innovation Rwanda Summer 2011 Django 01: Models
2 Models Suppose we want to create a web application to manage data about thousands of movies What information would we want to store? Title Rating (scale from 1 to 5) Genre Lead Actor Supporting Actors 2
3 Models How would we think about storing this data? Lecture 4: Dictionaries and lists are used to store data in Python Web applications use databases Lots of options varying syntax Each table represents a different model Each column is a different attribute Django: Common interface to almost all database solutions (NoSQL and SQL) 3
4 Models Django s database interface works with any object of type django.db.models.model To create your own Model, use inheritance! from django.db import models class Movie(models.Model): # attributes go here Inherits from models.model 4
5 Models Models have attributes: Fields We create instances of Model objects in a different way (no init function necessary) from django.db import models class Movie(models.Model): # attributes go here self.title = models.charfield(max_length=100) self.rating = models.integerfield() Field to store text (strings and unicode objects) Field to store the rating the movie received 5
6 Models Some attributes indicate special relationships to other Model objects ForeignKey: OneToMany ManyToManyField: Well, it s a many-to-many field from django.db import models One movie can have many supporting actors; one supporting actor can be in many movies class Movie(models.Model): rating = models.integerfield() title = models.charfield(max_length=100) genre = models.charfield() lead_actor = models.foreignkey(actor,related_name= lead actor ) support_actors = models.manytomanyfield(actor,related_name= support ) One lead actor who could be the lead actor in other movies 6
7 Checkpoint: Models Build a django Model class for Actor What does the class inherit from? What attributes should the class have? Build a django Model class for Award What does the class inherit from? What attributes should the class have? 7
8 Checkpoint: Models Actor Model class: class Actor(models.Model): name = models.charfield(max_length=100) birth_date = models.datefield() Attributes name: a string- use a CharField birth_date: a datetime.date- use a DateField 8
9 Checkpoint: Models What type of field should we use for the title of the Award? CharField What type of field should we use to denote the winning actor? ForeignKey (one actor, many awards) What type of field should we use for the nominees (each nominee is a Movie)? ManyToManyField (each movie can be nominated for many awards, each award has many nominees) 9
10 Checkpoint: Models Award Model class: What type of field should we use for the title of the Award? What type of field should we use to denote the winning actor? What type of field should we use for the nominees (each nominee is a Movie)? class Award(models.Model): title = models.charfield(max_length=100) sponsor = models.charfield(max_length=100) year = models.datefield() winning_actor = models.foreignkey(actor) winning_movie = models.foreignkey(movie,related_name= winning movie ) nominees = models.manytomanyfield(movie,related_name= nominees ) 10
11 Checkpoint: Models Wait! How does Actor relate to the Movie class that we just wrote? We only need to specify the relation in one of the models Later: We can go backwards and get all Movie objects with the same lead actor or supporting actors class Actor(models.Model): name = models.charfield(max_length=100) birth_date = models.datefield() 11
12 Models Inserting information into the database Now: command line (manual) Later: admin (Django GUI Interface) Monday: forms (user-initiated) But we need to actually create our database first 12
13 Models: Add the application with the relevant models to the list of INSTALLED_APPS Specify the path to your new database Validate your Model classes django-admin.py validate Create or update the models in our project python manage.py syncdb Later: reset the database (clear all information) python manage.py reset app_name We ll see the utility of this later on 13
14 Models: Python Shell Use the Python shell to add information to the database python manage.py shell gives us a Djangoready Python shell Let s put information about Akeelah and the Bee in our database Movie: Akeelah and the Bee Actor: Keke Palmer Award: Outstanding Actress (won by Keke) 14
15 Models: Python Shell from movie_app.models import Actor,Award,Movie import datetime Import the model classes we made keke = Actor(name= Keke Palmer,birth_date=datetime.date(1993,8,26)) Looks like our usual initialization but a little different keke.save() Saves a new entry in the Actor table of the database How could we create a new entry for the movie Akeelah and the Bee 15
16 Models: Python Shell akeelah_bee = Movie(title= Akeelah and the Bee,lead_actor=keke, genre= Drama,rating=4) How do we store akeelah_award into our database? akeelah_bee.save() Create the award akeelah_bee We need to stop and save akeelah_bee before setting our supporting actor attributes ManyToManyField: convenient, useful, and a little weird 16
17 Models: Field Values We know how to add entries into the database with different attribute values How do we restrict attribute values? Set of choices Validate using our own rules (consider the max_length=100 rule that we have set on some of the CharField objects) 17
18 Models: Field Values Suppose we wanted to add a gender attribute to the Actor class gender should be a character, either M for Male or F for Female The set of choices is a tuple of individual choices Each choice is its own tuple GENDER_CHOICES = ( ( M, Male ),( F, Female )) M and F are the allowed field values Male and Female are the human-readable choices (what you will see in the admin dropdown menu see the next lecture) 18
19 Models: Field Values Restrict the movie rating to a number between 1 and 5 Use an adjective to describe the quality of the movie RATING_CHOICES = ((1,'Terrible'),(2,'Bearable'),(3,'Okay'), (4,'Good'),(5,'Fantastic')) class Movie(models.Model): title = models.charfield(max_length=100) # some attributes here rating = models.integerfield(choices=rating_choices) Set the choices option to the RATING_CHOICES tuple 19
20 Models: Access Suppose our database has information on three movies: Dreamgirls Akeelah and the Bee Something New All of these movies featured 2007 Best Actress nominees (won by Keke Palmer from Akeelah and the Bee ) 20
21 Models: Access How do we access different subsets of these movies? QuerySet: iterable structure with zero, one, or more table entries (model instances) >>> Movie.objects.all() [<Movie: Akeelah and the Bee>, <Movie: Dreamgirls>, <Movie: Something New>] Returns a QuerySet with all model instances >>> Movie.objects.filter(title="Dreamgirls") [<Movie: Dreamgirls>] Returns a QuerySet with model instances that have title Dreamgirls 21
22 Models: Access How do we access different subsets of these movies? QuerySet: iterable structure with zero, one, or more table entries (model instances) >>> Movie.objects.filter(rating lt=5) [<Movie: Akeelah and the Bee>, <Movie: Something New>] Returns a QuerySet with model instances that have rating less than 5 >>> Movie.objects.filter(rating=5) [<Movie: Dreamgirls>] Returns a QuerySet with model instances that have rating equal to 5 22
23 Models: Access Access a particular Model instance: Use the get command Access to Model attributes: Use the same.attribute syntax as in Python classes >>> dreamgirls = Movie.objects.get(title="Dreamgirls") >>> print dreamgirls.lead_actor Beyonce Knowles 23
24 Backup Slides References: IMDB.com 24
25 Models: Using the Admin admin is a builtin Django module Simple GUI to create and modify the entries in your database models.py class Actor(models.Model): # some code class Award(models.Model): # some code class Movie(models.Model): # some code admin.site.register(actor) admin.site.register(award) admin.site.register(movie) 25
CE419 Web Programming. Session 15: Django Web Framework
CE419 Web Programming Session 15: Django Web Framework Web Applications & Databases In modern Web applications, the arbitrary logic often involves interacting with a database. Behind the scenes, a database-driven
More informationMIT Global Startup Labs México 2013
MIT Global Startup Labs México 2013 http://aiti.mit.edu Lesson 2 Django Models What is a model? A class describing data in your application Basically, a class with attributes for each data field that you
More informationDjango Admin Sortable Documentation
Django Admin Sortable Documentation Release 1.7.0 Brandon Taylor September 28, 2016 Contents 1 Supported Django Versions 3 1.1 Django 1.4.x............................................... 3 1.2 Django
More informationdjango-model-utils Documentation
django-model-utils Documentation Release 3.1.1 Carl Meyer Jan 10, 2018 Contents 1 Contents 3 1.1 Setup................................................... 3 1.1.1 Installation...........................................
More informationMIT AITI Python Software Development Lab DJ1:
MIT AITI Python Software Development Lab DJ1: This lab will help you get Django installed and write your first application. 1 Each person in your group must complete this lab and have it checked off. Make
More informationFirst Django Admin Documentation
First Django Admin Documentation Release 0.1 Investigative Reporters and Editors February 26, 2017 Contents 1 What you will make 3 2 About the authors 5 3 Prelude: Prerequisites 7 3.1 Command-line interface.........................................
More informationstaff Documentation Release 1.2
staff Documentation Release 1.2 me February 06, 2016 Contents 1 Goals 3 2 Contents 5 2.1 Getting Started.............................................. 5 2.2 Customizing StaffMember........................................
More information7401ICT eservice Technology. (Some of) the actual examination questions will be more precise than these.
SAMPLE EXAMINATION QUESTIONS (Some of) the actual examination questions will be more precise than these. Basic terms and concepts Define, compare and discuss the following terms and concepts: a. HTML,
More informationRuntime Dynamic Models Documentation Release 1.0
Runtime Dynamic Models Documentation Release 1.0 Will Hardy October 05, 2016 Contents 1 Defining a dynamic model factory 1 1.1 Django models.............................................. 1 1.2 Django s
More informationdjango-pgfields Documentation
django-pgfields Documentation Release 1.0 Luke Sneeringer July 31, 2013 CONTENTS i ii This is django-pgfields, a pluggable Django application that adds support for several specialized PostgreSQL fields
More informationEasy-select2 Documentation
Easy-select2 Documentation Release 1.2.2 Lobanov Stanislav aka asyncee September 15, 2014 Contents 1 Installation 3 2 Quickstart 5 3 Configuration 7 4 Usage 9 5 Reference 11 5.1 Widgets..................................................
More informationAccelerating Information Technology Innovation
Accelerating Information Technology Innovation http://aiti.mit.edu India Summer 2012 Lecture 8 Django Admin Pages/UI Design Tips Issues from Yesterday Pass circular ForeignKey references as strings, but
More informationdjango-audit-log Documentation
django-audit-log Documentation Release 0.8.0 Vasil Vangelovski (Atomidata) Jul 21, 2017 Contents 1 Installation 3 2 Tracking Users that Created/Modified a Model 5 2.1 Tracking Who Created a Model.....................................
More informationTomasz Szumlak WFiIS AGH 23/10/2017, Kraków
Python in the Enterprise Django Intro Tomasz Szumlak WFiIS AGH 23/10/2017, Kraków Going beyond Django is a Web framework very popular! It is not the only one, and cannot do wonders There are many others:
More informationSouth Documentation. Release 1.0. Andrew Godwin
South Documentation Release 1.0 Andrew Godwin Jul 10, 2017 Contents 1 Support 3 2 Contents 5 2.1 About South............................................... 5 2.2 What are migrations?...........................................
More informationAccelerating Information Technology Innovation
Accelerating Information Technology Innovation http://aiti.mit.edu/program/philippines-summer-2012/ Philippines Summer 2012 Lecture 3 Rapid Application Development with Python June 26, 2012 Agenda Introduction
More informationcanary Documentation Release 0.1 Branton K. Davis
canary Documentation Release 0.1 Branton K. Davis August 18, 2012 CONTENTS 1 Installation 3 1.1 Installing Canary Reports........................................ 3 1.2 Running the Demo Project........................................
More informationdjango-conduit Documentation
django-conduit Documentation Release 0.0.1 Alec Koumjian Apr 24, 2017 Contents 1 Why Use Django-Conduit? 3 2 Table of Contents 5 2.1 Filtering and Ordering.......................................... 5
More informationAccelerating Information Technology Innovation
Accelerating Information Technology Innovation http://aiti.mit.edu Ghana Summer 2012 Lecture DJ04 Django Views Simple Diagram HTTP Request Browser urls.py HTTP Request Model/Database Data Request Data
More informationdjango-auditlog Documentation
django-auditlog Documentation Release 0.4.3 Jan-Jelle Kester Jul 05, 2017 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Usage...................................................
More informationGraphene Documentation
Graphene Documentation Release 1.0.dev Syrus Akbary Nov 09, 2017 Contents 1 Introduction tutorial - Graphene and Django 3 1.1 Set up the Django project........................................ 3 1.2 Hello
More informationCSE 530 Midterm Exam
CSE 530 Midterm Exam Name: (Print CLEARLY) Question Points Possible Points Earned 1 25 2 10 3 20 4 20 5 15 Total 90 1 Question 1 Heap Files Suppose we want to create a heap file with a page size of 512
More informationDjango starting guide
Django starting guide (and much more ) Alessandro Bucciarelli Outline Lesson 1 Intro to versioning systems (Git) Intro to Python and basic data structures Django Lesson 2 Interaction between Django and
More informationWebdev: Building Django Apps. Ryan Fox Andrew Glassman MKE Python
Webdev: Building Django Apps Ryan Fox Andrew Glassman MKE Python What Django is Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced
More informationInformation Systems Engineering. SQL Structured Query Language DDL Data Definition (sub)language
Information Systems Engineering SQL Structured Query Language DDL Data Definition (sub)language 1 SQL Standard Language for the Definition, Querying and Manipulation of Relational Databases on DBMSs Its
More informationdjango-model-report Documentation
django-model-report Documentation Release 0.2.1 juanpex Nov 06, 2017 Contents 1 Demo 3 1.1 User Guide................................................ 3 1.2 Modules.................................................
More informationBricks Documentation. Release 1.0. Germano Guerrini
Bricks Documentation Release 1.0 Germano Guerrini January 27, 2015 Contents 1 Requirements 3 2 Contents 5 2.1 Getting Started.............................................. 5 2.2 Basic Usage...............................................
More informationDjango Extras Documentation
Django Extras Documentation Release 0.2.7.b1 Tim Savage September 22, 2017 Contents 1 Django Extras documentation 1 1.1 Project Status............................................... 1 1.2 Getting help...............................................
More informationAccelerating Information Technology Innovation
Accelerating Information Technology Innovation http://aiti.mit.edu Nigeria Summer 2011 Django The Big Picture Google App Engine Mobile Web Browser/ Mobile Web App Your Django app Mobile App Development
More informationDjango Image Tools Documentation
Django Image Tools Documentation Release 0.7.b1 Bonsai Studio May 05, 2017 Contents 1 Quick Start 3 1.1 Configuration............................................... 3 1.2 Example models.............................................
More informationReminders. Full Django products are due next Thursday! CS370, Günay (Emory) Spring / 6
Reminders Full Django products are due next Thursday! CS370, Günay (Emory) Spring 2015 1 / 6 Reminders Full Django products are due next Thursday! Let's start by quizzing you. CS370, Günay (Emory) Spring
More informationDDF Documentation. Release Paulo Cheque
DDF Documentation Release 1.7.0 Paulo Cheque Aug 31, 2017 Contents 1 Getting Started 3 1.1 Basic Example of Usage......................................... 3 1.2 Installation................................................
More informationAwl Documentation. Release Christopher Trudeau
Awl Documentation Release 0.19.0 Christopher Trudeau Jan 09, 2018 Contents 1 Installation 3 2 Supports 5 3 Docs & Source 7 4 Contents 9 4.1 Admin Tools............................................... 9
More informationwagtailtrans Documentation
wagtailtrans Documentation Release 0.1.0 LUKKIEN Jul 27, 2018 Contents 1 Table of contents 3 1.1 Getting started.............................................. 3 1.2 Migrate your existing Wagtail site....................................
More informationdjango-scaffold Documentation
django-scaffold Documentation Release 1.1.1 James Stevenson May 27, 2015 Contents 1 Installation 3 2 Creating an app to extend scaffold 5 2.1 1. Create a new application........................................
More informationDjango ORM crash
Django ORM crash test Django ORM crash test Andrii Soldatenko 9 April 2017 Italy, Otto Andrii Soldatenko Senior Python Developer at CTO at Co-organizer PyCon Belarus 2017 Speaker at many PyCons and open
More informationdjango-slim Documentation
django-slim Documentation Release 0.5 Artur Barseghyan December 24, 2013 Contents i ii django-slim Contents 1 2 Contents CHAPTER 1 Description Simple implementation of multi-lingual
More informationMapEntity Documentation
MapEntity Documentation Release 0.1.0 Makina Corpus Jun 11, 2018 Contents 1 Installation 3 1.1 Quickstart................................................ 3 1.2 Manual installation With a PostGIS database..............................
More informationQuoting Wikipedia, software
Developers How To Django When Python Bites the Web WWW.WWW.WWW. Here s how to start using Django for Web application development. Quoting Wikipedia, software frameworks aim to facilitate software development
More informationdjango-organizations Documentation
django-organizations Documentation Release 1.1.1 Ben Lopatin Aug 29, 2018 Contents 1 Getting started 3 1.1 Installation................................................ 3 1.2 Configuration...............................................
More informationdjango-filter Documentation
django-filter Documentation Release 1.0.4 Alex Gaynor and others. Sep 26, 2017 User Guide 1 Installation 3 1.1 Requirements............................................... 3 2 Getting Started 5 2.1 The
More informationdjango-teamwork Documentation
django-teamwork Documentation Release 0.0.1 Les Orchard Jun 11, 2017 Contents 1 Overview 3 1.1 What is django-teamwork?........................................ 3 2 Getting Started 5 2.1 Installation................................................
More informationdjango-audiofield Documentation
django-audiofield Documentation Release 0.8.2 Arezqui Belaid Sep 27, 2017 Contents 1 Introduction 3 1.1 Overview................................................. 3 1.2 Usage...................................................
More informationdjango-filter Documentation
django-filter Documentation Release 2.0.0 Alex Gaynor and others. Dec 17, 2018 User Guide 1 Installation 3 1.1 Requirements............................................... 3 2 Getting Started 5 2.1 The
More informationdjango-gollum Documentation
django-gollum Documentation Release 1.0.0 Luke Sneeringer December 11, 2016 Contents 1 Installation 3 2 Dependencies 5 3 Getting Started 7 4 Getting Help 9 5 License 11 6 Index 13 6.1 Using django-gollum...........................................
More informationdjango-modeltranslation Documentation
django-modeltranslation Documentation Release 0.12.2 Dirk Eschler Jul 02, 2018 Contents 1 Features 3 1.1 Project Home............................................... 3 1.2 Documentation..............................................
More informationThe Django Web Framework Part VI
The Django Web Framework Part VI Web Programming Course Fall 2013 Outline Session Framework User Authentication & Authorization in Django 2 Session Framework Session Framework lets you store and retrieve
More informationdjango-polymorphic Documentation
django-polymorphic Documentation Release 2.0.3 Bert Constantin, Chris Glass, Diederik van der Boor Aug 23, 2018 Contents 1 Features 3 2 Getting started 5 2.1 Quickstart................................................
More informationTechnology modeling. Ralf Lämmel Software Languages Team University of Koblenz-Landau
Technology modeling Ralf Lämmel Software Languages Team University of Koblenz-Landau Technologies are at the heart of software development. Let s model them for understanding. 1 Different kinds of software
More informationLinguistic Architecture
Linguistic Architecture Modeling Software Knowledge SoftLang Team, University of Koblenz-Landau Prof. Dr. Ralf Lämmel Msc. Johannes Härtel Msc. Marcel Heinz Outline Motivating Software Documentation Classic
More informationDay 28 Arithmetic Sequence. Find the next two terms of each sequence. Then describe the pattern. The equations will be completed later.
Find the next two terms of each sequence. Then describe the pattern. The equations will be completed later. 1, 3, 5, 7, 9,, Description: Equation: 2, 7, 12, 17, 22,, Description: Equation: -416, -323,
More informationHOW TO MAKE A FULL FLEDGED REST API. with DJANGO OAUTH TOOLKIT
HOW TO MAKE A FULL FLEDGED REST API with DJANGO OAUTH TOOLKIT FEDERICO FRENGUELLI @synasius http://evonove.it GOALS OAuth2 protected REST API with Django WHY? INTRODUCING the marvelous TIMETRACKER ONCE
More informationDAY 28 - ARITHMETIC SEQUENCES
DAY 28 - ARITHMETIC SEQUENCES ARITHMETIC SEQUENCE An ARITHMETIC SEQUENCE is where the rule of the pattern is always ADDED. The rule is called the COMMON DIFFERENCE ARITHMETIC SEQUENCE You can use the following
More informationPART I SQLAlchemy Core
PART I SQLAlchemy Core Now that we can connect to databases, let s begin looking at how to use SQLAlchemy Core to provide database services to our applications. SQLAlchemy Core is a Pythonic way of representing
More informationSwingtime Documentation
Swingtime Documentation Release 0.2 David Krauth Nov 08, 2017 Contents 1 Table of Contents 1 1.1 Introduction............................................... 1 1.1.1 About Swingtime........................................
More informationdjango-dynamic-scraper Documentation
django-dynamic-scraper Documentation Release 0.2-alpha Holger Drewes June 22, 2012 CONTENTS i ii Django Dynamic Scraper (DDS) is an app for Django build on top of the scraping framework Scrapy. While
More informationTangent MicroServices Documentation
Tangent MicroServices Documentation Release 1 Tangent Solutions March 10, 2015 Contents 1 Getting Started 3 1.1 Micro Services Projects......................................... 3 2 Service Registry 5
More informationCSE 374: Programming Concepts and Tools. Eric Mullen Spring 2017 Lecture 4: More Shell Scripts
CSE 374: Programming Concepts and Tools Eric Mullen Spring 2017 Lecture 4: More Shell Scripts Homework 1 Already out, due Thursday night at midnight Asks you to run some shell commands Remember to use
More informationDjango-Select2 Documentation. Nirupam Biswas
Nirupam Biswas Mar 07, 2018 Contents 1 Get Started 3 1.1 Overview................................................. 3 1.2 Installation................................................ 3 1.3 External Dependencies..........................................
More informationNinja Typers Web Application Design Document By Marvin Farrell C
Ninja Typers Web Application Design Document By Marvin Farrell C00141725 Table of Contents 1. Introduction... 2 2. Django Files... 2 2.2. Project Files... 2 2.3. Application Files... 3 3. Use Cases...
More informationdjango-mptt Documentation
django-mptt Documentation Release 0.8.7 Craig de Stigter Nov 12, 2017 Contents 1 Overview 3 1.1 What is Modified Preorder Tree Traversal?............................... 3 1.2 What is django-mptt?........................................
More informationfragapy Documentation
fragapy Documentation Release 1.0 2011, Fragaria, s.r.o November 09, 2011 CONTENTS 1 Adminhelp 3 2 Amazon 5 2.1 AWS branded scripts........................................... 5 2.2 SES SMTP relay.............................................
More informationLotus IT Hub. Module-1: Python Foundation (Mandatory)
Module-1: Python Foundation (Mandatory) What is Python and history of Python? Why Python and where to use it? Discussion about Python 2 and Python 3 Set up Python environment for development Demonstration
More informationdjango-embed-video Documentation
django-embed-video Documentation Release 0.6.stable Juda Kaleta October 04, 2013 CONTENTS i ii Django app for easy embeding YouTube and Vimeo videos and music from SoundCloud. Repository is located on
More informationdjango-renderit Documentation
django-renderit Documentation Release 1.2 jsoares Nov 20, 2017 Contents 1 Installation 3 2 Getting Started 5 2.1 Basic Usage............................................... 5 2.2 Extra Arguments.............................................
More informationopen-helpdesk Documentation
open-helpdesk Documentation Release 0.9.9 Simone Dalla Nov 16, 2017 Contents 1 Overview 3 1.1 Dependencies............................................... 3 1.2 Documentation..............................................
More informationPython Schema Generator Documentation
Python Schema Generator Documentation Release 1.0.0 Peter Demin June 26, 2016 Contents 1 Mutant - Python code generator 3 1.1 Project Status............................................... 3 1.2 Design..................................................
More informationPython. Django. (Web Application Framework - WAF) PyCharm. (Integration Development Environment - IDE)
Python Django (Web Application Framework - WAF) PyCharm (Integration Development Environment - IDE) Compiled and condensed notes from various online sources Gregg Roeten pg 1 Build Environment as of 09/10/2015
More informationCS1210 Lecture 28 Mar. 27, 2019
CS1210 Lecture 28 Mar. 27, 2019 Discussion section exam scores posted score # people 0-5 6-10 11-15 16-20 21-25 26-30 28 48 39 37 30 9 median: 13 Some words about overall grades more detail next Wednesday
More informationdjango_podcasting Documentation
django_podcasting Documentation Release 1.3.2 Thomas Schreiber Jun 03, 2017 Contents 1 History 3 2 Differences 5 3 Nomenclature 7 4 Requirements 9 5 Features 11 6 Optional Features 13 7 Usage 15 8 Future
More informationDjango File Picker Documentation
Django File Picker Documentation Release 0.5 Caktus Consulting Group LLC Nov 06, 2017 Contents 1 Dependencies 3 1.1 Required................................................. 3 1.2 Optional.................................................
More informationdjango-embed-video Documentation
django-embed-video Documentation Release 0.7.stable Juda Kaleta December 21, 2013 Contents i ii Django app for easy embeding YouTube and Vimeo videos and music from SoundCloud. Repository is located on
More informationInformation Systems for Engineers. Exercise 10. ETH Zurich, Fall Semester Hand-out Due
Information Systems for Engineers Exercise 10 ETH Zurich, Fall Semester 2017 Hand-out 08.12.2017 Due 15.12.2017 1. (Exercise 8.1.1 in [1]) Movies(title, year, length, genre, studioname, producercertnumber)
More informationdango-ct Documentation
dango-ct Documentation Release 0.1 Wolfgang Doll Sep 27, 2017 Contents 1 Implementation Details 3 2 Some Research 7 3 Test Data Sources 9 4 Requirements 11 5 SQL Snippets 13 6 Queries for Digraph-shaped
More informationAristotle Metadata Registry Documentation
Aristotle Metadata Registry Documentation Release 0.0.1 Samuel Spencer Oct 23, 2018 Contents 1 Table of Contents 3 1.1 Aristotle Metadata Registry Mission Statement............................. 3 1.2
More informationEECS-3421a: Test #2 Queries
2016 November 9 EECS-3421a: Test #2 w/ answers 1 of 16 EECS-3421a: Test #2 Queries Electrical Engineering & Computer Science Lassonde School of Engineering York University Family Name: Given Name: Student#:
More informationdjango-openid Documentation
django-openid Documentation Release 2.0a Simon Willison September 27, 2017 Contents 1 Installation 3 2 Accepting OpenID 5 2.1 Redirecting somewhere else....................................... 6 2.2 Requesting
More informationCS108 Lecture 19: The Python DBAPI
CS108 Lecture 19: The Python DBAPI Sqlite3 database Running SQL and reading results in Python Aaron Stevens 6 March 2013 What You ll Learn Today Review: SQL Review: the Python tuple sequence. How does
More informationTHE AUSTRALIAN NATIONAL UNIVERSITY. Mid-Semester Examination August 2006 RELATIONAL DATABASES (COMP2400)
THE AUSTRALIAN NATIONAL UNIVERSITY Mid-Semester Examination August 2006 RELATIONAL DATABASES (COMP2400) Reading Time: 10 minutes Writing Time: 1 hour Permitted Materials: One A4 sheet with notes on both
More informationUnit 6 IoT Physical Servers, Cloud Offerings & IoT Case Studies. By Mahesh R. Sanghavi
Unit 6 IoT Physical Servers, Cloud Offerings & IoT Case Studies By Mahesh R. Sanghavi Content Introduction to Cloud Storage Models Communication API WAMP: AutoBahn for IoT Xively Cloud for IoT Python Web
More informationdjango-oauth2-provider Documentation
django-oauth2-provider Documentation Release 0.2.7-dev Alen Mujezinovic Aug 16, 2017 Contents 1 Getting started 3 1.1 Getting started.............................................. 3 2 API 5 2.1 provider.................................................
More informationGetting Django Set Up Using a Functional Test
CHAPTER 1 Getting Django Set Up Using a Functional Test TDD isn t something that comes naturally. It s a discipline, like a martial art, and just like in a Kung-Fu movie, you need a bad-tempered and unreasonable
More informationDjango ORM Cookbook Documentation
Django ORM Cookbook Documentation Release 2.0 Agiliq Oct 11, 2018 Contents 1 Introduction 3 2 Querying and Filtering 5 3 Creating, Updating and Deleting things 23 4 Ordering things 29 5 Database Modelling
More informationIntroduction to Python
Introduction to Python Version 1.1.5 (12/29/2008) [CG] Page 1 of 243 Introduction...6 About Python...7 The Python Interpreter...9 Exercises...11 Python Compilation...12 Python Scripts in Linux/Unix & Windows...14
More informationdjango SHOP Release dev0
django SHOP Release 0.2.1.dev0 May 26, 2016 Contents 1 User Manual 1 2 How to 11 3 Advanced how to 19 4 Reference 23 5 The name 27 Python Module Index 29 i ii CHAPTER 1 User Manual The instructions :)
More informationdjango-allauth-2fa Documentation
django-allauth-2fa Documentation Release 0.4.3 Víðir Valberg Guðmundsson, Percipient Networks Apr 25, 2018 Contents: 1 Features 3 2 Compatibility 5 3 Contributing 7 3.1 Running tests...............................................
More informationdjango-rest-framework-datatables Documentation
django-rest-framework-datatables Documentation Release 0.1.0 David Jean Louis Aug 16, 2018 Contents: 1 Introduction 3 2 Quickstart 5 2.1 Installation................................................ 5
More informationdjango-embed-video Documentation
django-embed-video Documentation Release 1.1.2-stable Juda Kaleta Nov 10, 2017 Contents 1 Installation & Setup 3 1.1 Installation................................................ 3 1.2 Setup...................................................
More informationThis course is designed for anyone who needs to learn how to write programs in Python.
Python Programming COURSE OVERVIEW: This course introduces the student to the Python language. Upon completion of the course, the student will be able to write non-trivial Python programs dealing with
More informationSCHEME AND CALCULATOR 5b
SCHEME AND CALCULATOR 5b COMPUTER SCIENCE 6A July 25, 203 In the next part of the course, we will be working with the Scheme programming language. In addition to learning how to write Scheme programs,
More informationProgramming and Database Fundamentals for Data Scientists
Programming and Database Fundamentals for Data Scientists Database Fundamentals Varun Chandola School of Engineering and Applied Sciences State University of New York at Buffalo Buffalo, NY, USA chandola@buffalo.edu
More informationdjango-intranet Documentation
django-intranet Documentation Release 0.2 Ionyse Nov 14, 2017 Contents 1 Abstract 1 2 Table of contents 3 2.1 Setup a new project............................................ 3 2.2 Create a new module...........................................
More informationDjango-dbindexer Documentation
Django-dbindexer Documentation Release 1.0 Waldemar Kornewald, Thomas Wanschik March 19, 2013 CONTENTS 1 Tutorials 3 2 Documentation 5 3 Installation 7 4 How does django-dbindexer make unsupported field
More information2. (10 points) SQL. Some Quidditch League! [Exercise] Consider the Movie database with the schema in Figure 2 on page 15 for the questions below.
2016 November 9 EECS-3421a: Test #2 w/ answers 4 of 16 2. (10 points) SQL. Some Quidditch League! [Exercise] Consider the Movie database with the schema in Figure 2 on page 15 for the questions below.
More informationdjango-jenkins Documentation
django-jenkins Documentation Release 0.19.0 Mikhail Podgurskiy, Gabriel Le Breton Jun 04, 2017 Contents 1 Indices and tables 3 2 Getting started 5 2.1 Configuring django project........................................
More informationdjango-import-export Documentation
django-import-export Documentation Release 0.1.4 Bojan Mihelac August 27, 2013 CONTENTS i ii django-import-export is a Django application and library for importing and exporting data with included admin
More informationIntroduction to Programming in C Department of Computer Science and Engineering
Introduction to Programming in C Department of Computer Science and Engineering In this lecture, we will see slightly more advanced data type, then a singly link list. We will briefly go over one or two
More informationdjango-filer Documentation
django-filer Documentation Release 1.3.0 Stefan Foulis Nov 09, 2017 Contents 1 Getting help 3 2 Contributing 5 3 Contents 7 i ii django-filer is a file management application for django. It handles uploading
More informationAldryn Documentation. Release Divio AG
Aldryn Documentation Release 0.1.1 Divio AG April 09, 2015 Contents 1 Getting Help 3 2 Table of Contents 5 2.1 Sites................................................... 5 2.2 Cloud Client...............................................
More informationdjango-image-cropping Documentation
django-image-cropping Documentation Release 1.1.0 Jonas und der Wolf Nov 06, 2017 Contents 1 Installation 3 2 Configuration 5 3 Admin Integration 7 4 Backends 9 5 Frontend 11 5.1 easy_thumbnails.............................................
More information