Let us help you find the training program you are looking for.

If you can't find what you are looking for, contact us, we'll help you find it. We have over 800 training programs to choose from.

banner-img

Course Skill Level:

Foundational to Intermediate

Course Duration:

5 day/s

  • Course Delivery Format:

    Live, instructor-led.

  • Course Category:

    Big Data & Data Science

  • Course Code:

    IPYTDJS21J09

Who should attend & recommended skills:

Developers with basic operating system, HTML5, CSS, and any programming language experience

Who should attend & recommended skills

  • Those seeking to develop web applications using Django.
  • Operating System (Linux, Unix, Windows, Solaris, Mac OS X, etc.): Basic (1-2 years’ experience)
  • HTML5: Basic (1-2 years’ experience)
  • CSS: Basic (1-2 years’ experience)
  • Programming Language (any other): Basic (1-2 years’ experience) desirable

About this course

The Introduction to Python and Django course starts by teaching participants the basics of Python, then moves on to teach how to develop Web applications using the Django framework. This class covers the fundamentals of creating basic applications using the MVC (model-view-controller) design pattern, as well as more advanced topics such as administration, session management, authentication, and automated testing.

Skills acquired & topics covered

  • Develop full-stack web sites based on content stored in an RDMS
  • Use python data types appropriately
  • Define data models
  • Understand the architecture of a Django-based web site
  • Create Django templates for easy-to-modify views
  • Map views to URLs
  • Take advantage of the built-in Admin interface
  • Provide HTML form processing

Course breakdown / modules

  • Starting Python
  • Using the interpreter
  • Running a Python script
  • Python scripts on Unix/Windows
  • Editors and IDEs

  • Using variables
  • Built in functions
  • Strings
  • Numbers
  • Converting among types
  • Writing to the screen
  • Command line parameters

  • About flow control
  • White space
  • Conditional expressions
  • Relational and Boolean operators
  • While loops
  • Alternate loop exits

  • About sequences
  • Lists and list methods
  • Tuples
  • Indexing and slicing
  • Iterating through a sequence
  • Sequence functions, keywords, and operators
  • List comprehensions
  • Nested sequences

  • File overview
  • The with statement
  • Opening a text file
  • Reading a text file
  • Writing to a text file
  • Raw (binary) data

  • About dictionaries
  • Creating dictionaries
  • Iterating through a dictionary
  • About sets
  • Creating sets
  • Working with sets

  • About sequences
  • Function parameters
  • Global variables
  • Global scope
  • Returning values
  • Sorting data

  • Syntax errors
  • Exceptions
  • Using try/catch/else/finally
  • Handling multiple exceptions
  • Ignoring exceptions

  • The import statement
  • Module search path
  • Zipped libraries
  • Creating Modules
  • Function and Module aliases

  • About o-o programming
  • Defining classes
  • Constructors
  • Instance methods and data
  • Class/static methods and data
  • Inheritance

  • Sites and apps
  • Shared configuration
  • Minimal Django layout
  • Builtin flexibility

  • Executing manage.py
  • Starting the project
  • Database setup
  • The development server

  • Generate the application files
  • Defining models
  • Related objects
  • SQL Migration
  • App configuration
  • Accessing models

  • Setting up the admin user
  • Running the admin site
  • Tweaking the admin interface
  • Changing the admin index page

  • What is a view
  • HttpResponse
  • URL route configuration
  • Shortcut: get_object_or_404()

  • About templates
  • Django template syntax
  • Static files
  • Loading templates
  • The url tag
  • Shortcut: template.render()

  • QuerySets
  • Field lookups
  • Chaining filters
  • Slicing QuerySets
  • Related fields
  • Q objects

  • Variable lookups
  • Comments
  • Inheritance
  • Filters
  • Escaping HTML
  • Custom filters

  • Forms overview
  • GET and POST
  • The Form class
  • Processing the form
  • Widgets
  • Validation
  • Forms in templates
  • Beyond the basics

  • Why create tests?
  • When to create tests
  • Using Django’s test framework
  • Using the test client
  • Running tests
  • Checking code coverage