Introduction to Django #2Introduction to Django #2 SPARCS `08 서우석 (pipoket) `09 Summer SP ARCS Seminar`09 Summer SP ARCS Seminar.

Slides:



Advertisements
Similar presentations
Presenter: James Huang Date: Sept. 29,  HTTP and WWW  Bottle Web Framework  Request Routing  Sending Static Files  Handling HTML  HTTP Errors.
Advertisements

Modern Web Application Frameworks CSE 591 – Security and Vulnerability Analysis Spring 2015 Adam Doupé Arizona State University
Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
SWU, Computer systems and technologies. The Objective of This Lecture To give you a very high-level overview of some of the tools for Web Programming.
COEN 445 Communication Networks and Protocols Lab 4
Using EWD to re-purpose a UI Rob Tweed. The Concept You have an existing well-designed and functional web user interface You want to re-purpose it to.
HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
Advanced Java Class Web Applications – Part 0 (Introduction)
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L22 (Chapter 25) Networking.
Fusebox Framework Florencio Almirol. Overview What is Fusebox? Concepts Request-Response Process Extending Fusebox.
 What is it ? What is it ?  URI,URN,URL URI,URN,URL  HTTP – methods HTTP – methods  HTTP Request Packets HTTP Request Packets  HTTP Request Headers.
Web Integration to an Appx Backend Server. Unix web servers + CGI Win2K web servers + ASP Win2K web servers + ODBC Processing requests Generating HTML.
An Introduction to ASP.NET Web Pages 2 Module 1: Webmatrix Installation and Your First Web Site Tom Perkins.
Web Development Methodologies Yuan Wang(yw2326). Basic Concepts Browser/Server (B/S) Structure Keywords: Browser, Server Examples: Websites Client/Server.
Web Frameworks: Django Department of Biomedical Informatics University of Pittsburgh School of Medicine
Django Web Framework 김형용, 이정민 Framework 2.1. Django High-level Python Web Framework Develop fast Automate the repetitive stuff Follow best practices.
Plone Großes Seminar Blockseminar SS04 Referentin: Katja Reitz.
1 Homework / Exam Exam 3 –Solutions Posted –Questions? HW8 due next class Final Exam –See posted schedule Websites on UNIX systems Course Evaluations.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Applets & Servlets.
Chapter 1: Introduction to Web
INE1020 Introduction to Internet Engineering Tutorial 8 All about Lab 6.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
Cloud computing lectures: Programming with Google App Engine Keke Chen.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Image Collection Backend for Cameraphones. Introduction Project Goals Design an integrated system to upload image from a mobile phone to a remote server.
Introduction to PythonIntroduction to Python SPARCS `08 서우석 (pipoket) `09 Summer SP ARCS Seminar`09 Summer SP ARCS Seminar.
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 6.
Lecture 19 Web Application Frameworks Boriana Koleva Room: C54
Standalone Java Application vs. Java Web Application
1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 7: HTTP and CGI Fundamentals of Web Programming.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Connect. Communicate. Collaborate The Installation of RRD Measurement Archive (MA) Roman Łapacz, PSNC 27 th September, 2006 SEEREN2 Summer School, Heraklion.
Django 101 By: Jason Sumner. Django Overview Django was started in 2003, released under BSD in 2005, and the Django Software Foundation was established.
Introduction to Django #3Introduction to Django #3 SPARCS `08 서우석 (pipoket) `09 Summer SP ARCS Seminar`09 Summer SP ARCS Seminar SPARCS.
CSU - DEO Introduction to CGI - Fort Collins, CO Copyright © XTR Systems, LLC Introduction to the Common Gateway Interface (CGI) Instructor: Joseph DiVerdi,
Google App Engine Data Store ae-10-datastore
Web Servers: The Engines that Drive the World Wide Web Dr. William Farmer Reza Sherafat McMaster University May 3, 2006.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
D JANGO Leo Wang Daniel South Philip Kim. Introduction Open Source web application framework Released in 2005 Python is used throughout Speed of development.
Django (and Web Application Frameworks) Joel Bremson May 16,
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
 Empowers to your customer  Product Rating and its Management in Ecommerce Framework  Product Reviews and Management: Collecting customer opinion about.
Copyright 2007 Byrne Reese. Distributed under Creative Commons, share and share alike with attribution. 1 Intermediate Perl Programming Class Two Instructor:
Field Trip #24 Setting Up a Web Server. Apache Apache is one of the most successful open source web servers In 1995 the most popular web server was the.
Basic Webpage Design HTML Forms. Objectives Learn how to use HTML to create a form. Explain the concept of forms Know the difference of GET and POST Discuss.
Migrating Web Frameworks Using Water Transformations Ahmed E. Hassan Richard C. Holt School of Computer Science University Of Waterloo.
Web Server Apache PHP HTTP Request User types URL into browser Address resolved if nec. We use directly Most browsers request.
NMD202 Web Scripting Week2. Web site
Web Programming with PHP (3) Superglobals, Form & File processing.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 1 Installing A Web Server.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Apache Server.
ASP MVP Web applications and Razor
Play Framework: Introduction
Extending functionality using Collections
Next Generation SSIS Tasks and data Connection Series
Test Case Structure Test Case Module(depend on framework) MocoServer
JavaScript: ExpressJS Overview
Development and Deployment with WSGI in Django
MapServer In its most basic form, MapServer is a CGI program that sits inactive on your Web server. When a request is sent to MapServer, it uses.
MVC Framework, in general.
Developing a Model-View-Controller Component for Joomla
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Bryan Burlingame 24 April 2019
Lecture 21 More On Django.
Training Module 10 V1.1 8/21/2019 Copyright ALSO A/S 2018.
Model View Controller (MVC)
Presentation transcript:

Introduction to Django #2Introduction to Django #2 SPARCS `08 서우석 (pipoket) `09 Summer SP ARCS Seminar`09 Summer SP ARCS Seminar

▶ Last HomeworkLast Homework Download the file Extract the downloaded file to any path you want (Refer the Python101, Python102 pdf about extraction) You have to make a simple web application does… –Get the input from the form –Save the input to the file –Show the entry of the file

▶ Last HomeworkLast Homework Form and getting input is already implemented What you have to do is… –Implement the “TODO” part on “input” and “show” functions They are in “spseminar/studentinfo/views.py” –Read the comment carefully (hey, it`s in Korean ) –Implement the function as you wish You should need Dev. Server. USE THE PORT RANGE BETWEEN If some port is already taken, use the other port

▶ Last TimeLast Time Simple Concept of HTTP Why Django is necessary How to Install Django Basic Dev. Flow in Django

▶ Helloworld – Timestamp ver. Django + Python 처리결과 출력 !

▶ What we have learned…What we have learned… Django Framework Model (DB) Controller (Code) View (html) views.py

▶ Helloworld – Stylish ver. CGI???

▶ Django is NOT CGIDjango is NOT CGI Django Framework Model (DB) Controller (Code) View (html) HOW?

▶ Django Template Only HTML Django does… Data + HTML views.py helloworld. html date date + html

▶ Making TemplateMaking Template Template 를 [ 어디 ] 에 저장할건가 ? mkdir templates Django 에게 … “Template 가 [ 어디 ] 에 저장되어있다 ” Edit settings.py

▶ Making Template – Edit settings.py $ vim settings.py 이렇게 세팅하고

▶ Making Template – Make helloworld.html html 에서의 변수선언

▶ Using Template – Edit helloworld.py Template Renderer render_to_string ( Template File, { var_dictionary }) html 변수 사용하기

▶ Template Done!Template Done!

▶ More about TemplatesMore about Templates for loop Calling func. if statement Other if statements

▶ More about TemplatesMore about Templates

▶ Getting InputGetting Input 로그인게시판검색블로깅 뉴스 댓글싸이월드 방명록 사용자의 입력 입력 -> 처리 -> 결과

▶Form

▶Form Template 로 Form 을 ! views.py 에 Form 을 보여주도록 추가 ! 그럼 입력값의 처리는 ?

▶Request 무엇에 쓰는 놈인고 ?

▶Request Form 으로부터의 입력 값 GET, POST Django 의 Session 값 로그인 정보 기타 저장해두고 싶은 값

▶ Using RequestUsing Request request.POST.get( Name at form, Default Value ) request.GET.get( Name at form, Default Value) Request.GET.get( Name at URL, Default Value) request.POST.get( Name at form, Default Value ) request.GET.get( Name at form, Default Value) Request.GET.get( Name at URL, Default Value)

▶ Using RequestUsing Request

▶Conclusion Templates Request Using Request Form

▶Homework