DOC PREVIEW
CU-Boulder CSCI 6448 - Django

This preview shows page 1-2-3-4 out of 12 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Presenters:Azhar Sikander, Ifi Okoye, Eric Lundby, Jonathan WatsonDjango(A web development framework for Python)Outline…. Introduction to Django Django as MVC Design Pattern Django Architecture Django ModulesWhy Django for Web DevelopmentWhy Django for Web Development Steps to create New Project What Django generates Sample ApplicationIntroduction – What is Django? Django is pronounced JANG-oh. The “D” is silent. “Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design.” The web framework for perfectionists with deadlines.The web framework for perfectionists with deadlines. Primary Focus Dynamic and database driven websites Content based websites Example Websites (Washingtonpost,eBay, craigslist)  Google AppEngineIntroduction…(Cont.)  History Named after famous Guitarist “Django Reinhardt” Developed by Adrian Holovaty and Jacob Kaplan-moss atWorld Online News for efficient development Open sourced in 2005First Version released September 3, 2008First Version released September 3, 2008Django as an MVC Design Pattern MVT Architecture: Models Describes your data structure/database schema ViewsControls whata user seesControls whata user sees Templates How a user sees it Controller The Django Framework URL parsingDjango Modules Administration interface (CRUD interface)  Authentication system Comments system Forms handlingSessionsSessions Syndication framework (RSS and Atom Feeds)  Caching Internationalization Localization Custom MiddlewareDjango ArchitectureWhy Django for Web Development Lets you divide code modules into logical groups to make it flexible to change MVC design pattern (MVT) Provides auto generated web admin to ease the website administration Provides pre-packaged API for common user tasksProvides you template system to define HTML template for Provides you template system to define HTML template for your web pages to avoid code duplication DRY Principle Allows you to define what URL be for a given Function Loosely Coupled Principle Allows you to separate business logic from the HTML Separation of concerns Everything is in python (schema/settings)Steps to create New Project Create a project Start an application Create the database (MySQL, Postgresql, SQLite)  Define DB Settings in Settings.py Define your models Add pluggable modules  Write your templates Define your views Create URL mapping Test Application Deploy Application (Linux, Apache, mod_Python, DB)What Django generates… MySite/ __init__.py Manage.py // Script to interact with Django Settings.py // Config URLs.py$ // My Site URL mappingMyProject/MyProject/ __init__.py URLs.py // Project specific URL mapping Models.py // Data Models Views.py // Contains the call back functions Admin.py TemplatesShow Sample ApplicationQuestions?(Questions are guaranteed in life; Answers aren’t.)  For more information (Documentation, Download and News) http://www.djangoproject.com/http://www.djangoproject.com/ A Good book to learn Django  http://www.djangobook.com/en/1.0/ The best place to start http://docs.djangoproject.com/en/dev/ A lot of Django Pluggables available online  Explore at


View Full Document

CU-Boulder CSCI 6448 - Django

Documents in this Course
Struts

Struts

12 pages

Adapter

Adapter

23 pages

Prototype

Prototype

16 pages

Weka

Weka

15 pages

qooxdoo

qooxdoo

16 pages

Overview

Overview

22 pages

XNA

XNA

5 pages

Load more
Download Django
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Django and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Django 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?