Course Title: Python + Django for Web Application Duration: 6 days Introduction This course offer Python + Django framework ( MTV ) training with hands on session using Eclipse+Pydev Environment. Python + Django aimed at larger applications, but take different approaches to extensibility and flexibility. Django targets flexibility and lets the developer use the right tools for their project. This means the developer can choose the database, URL structure, templating style, and more. Django aims to include all the batteries a web application will need so developers need only open the box and start working, pulling in Django's many modules as they go. Program objectives Some of the key skills you will gain upon completion of this program include: Basic Language Syntax Object Oriented Features in Python Exception Handling Regular Expression Working with inbuilt database support (SQLite) Itertools and Collections framework Python Decorator Web Frameworks Flask Web Application Prerequisite This course is for the beginners. The participants need not have any prior exposure to Python programming language. Prior familiarity with some other programming language (such as Java or C++) would be useful, but it is not mandatory. Audience This training is suitable for all Web Developers and Programmers who want to get hands-on experience of Web Framework. Set up Requirements Computer with the following software Tool :Sublime Text Editor +Eclipse + Pydev Operating System: Ubuntu16.x or MacOS or Windows7/ 8/10. Page 1
Python 2.7.12 or Anaconda Python 2.7.12 ( latest version ) Django 1.10.x Sqlite3 / MySQL Server 5.6.x ( Latest ) Python Mysql Connector https://pypi.python.org/pypi/mysql-python/1.2.5 Note: Training Session include 90 % Hands on Session and 10% Interactive Discussion Day Wise Break Up Day Module Topics Day 1 Module 1 Introduction to Python Dynamic Typing, Object Types Complex Object Type Operators Unbounded Integers Useful functions type() id() dir() help() chr() unichr() Module 2 Module 3 Module 4 Simple Program Using Basic Python Anaconda Installation Sublime Text Editor Python Project using Eclipse Basic Language Construct Data types and Variables String type Format method Operators and Expressions Indentation Data Structures Mutable and Immutable Data Structures 1) List, Subscripting, Nested List 2) Tuple, Use cases 3) String Manipulation 4) Dictionary with Case Study 5) Use Cases and Assignment Page 2
Module 5 Control Structure 1) Indentation 2) if elif else 3) while 4) for ( nested ) 5) Use Cases and Assignments Day 2 Module 6 Functions User Define Functions 1) global variable 2) default arguments 3) variable arguments *arg 4) Multiple Variable Default Argument 5) **kwarg 6) Use Case Design Multiplier Sequence Operation using a) lambda b) filter c) map d) reduce e) sum/max/min f) set g) enumerate h) sorted i) reversed j) range/ xrange Operation Using 1) List /Tuple Comprehension 2) Dictionary Comprehension 3) Dictionary Use Case Page 3
Module 7 Modules User Define Modules Import Categories 1) using import 2) using from Built In Modules 1) math 2) os 3) sys 4) random 5) pickle / Unpickle ( Object Serialization ) 6) json etc Module 8 Object Oriented Programming Classes and Objects The self keyword Methods and Attributes Constructor and Destructor Instance and static member Class Inheritance Built In Attributes private public _protected Multiple Inheritance Locking Attributes Super keyword Day 3 Module 9 Files Objects and Methods open() read(), readlines() write(), writelines() tell() using with statements Use Case using File Handling Module 10 Exception Handling Built in Exceptions exceptions module User Define Exceptions Page 4
Module 11 Regular expressions Pattern Writing Compiling Match/Search Group/Groups findall re.sub re.split Use Case using Regular Expression and Pattern Module 12 File and Directory handling 1) Fileinput 2) glob 3) Regular Expression 4) Case Study for Extraction of Data from Multiple Files and Generating Reports Day 4 Module 13 Itertools and Collections framework imap/ ifilter /izip Iterator file iteration using map Overriding iterator functions Generator yield Use Case of yield Module 14 Module 15 Introduction to Django Django Philosophy Django MTV Framework Django Installation Django Command Line Interface Django Administration Django Application Development Django Best Practices Generating Simple Django Views Static and Dynamic View HttpResponse, Request, render_to_response Page 5
Day 5 Module 16 Configuring URLconf s Django Template Usage About Templates Template Fundamentals Creating Template Objects Loading Template Files Filling in Template Content (Context Objects) Template Filters Template Tags More on For Loops Template Inheritance Easy Rendering of Templates Template Case Study Module 17 Database Models with Django Database abstraction (Object Relational Mapper) Working with an ORM on the command line Model validation Using Django's admin Database Models Integration with Database ( Sqlite3) Configuring Django for Database Access Day 6 Module 18 Advance Django Case Study Books Application Development and Integration with Django Admin Model Forms Forms, Contact Forms and Templates Integration Email Forms, SMTP Configuration Case Study Module 19 Django Rest framework/ Serialisation Case Study Summary and Conclusion Page 6