Audience
Python Web Developers looking to make use of the Django open source web framework.
Pre-requisites
A very good understanding of Python, plus experience with database access is required. A good grasp of web page technologies (html, css and JavaScript) is essential to get the most from this course.
Duration
3 days. Hands on.
Objectives
This hands-on course introduces the latest version of Django for experienced Python web developers. Best practices are explored and real-world examples are used to showcase the rapid development capabilities of Django
Course Contents
Introduction to Django
Recent changes in web development
Modern Web Design Patterns (MVC, MVVM etc.)
Overview of Django
Tight integration between the component and modular framework
Object-relational mapper
Clean URL design
Automatic administration interface
Advanced development environment
What's new in Django
Supported databases
Options for development: IDEs and Platforms
Getting Started
Installing the required software
Installing Python, virtualenv and Django
Django compatibility with operating systems
Installing a database system
Creating a project
Creating an empty project
Setting up the database
Launching the development server
Code Style in Django
Importing packages
Naming conventions in Python/Django
The Django project structure
Best practices: version control with Git
Setting up the database
Launching the development server
Fast web development
Overview of Bootstrap
Building a Social Application
Django terminology
Setting up a basic template application
Creating a virtual environment
Creating template structure
Setting up Bootstrap for the application
URLs and views
Introduction to class-based views
Django settings
Generating user pages
Familiarization with the Django models
Relationships in models
Designing an initial database schema
Django's user objects
Creating a URL
Creating a template for the Main Page
Introducing Hashtags
The hashtag data model
Django forms
Designing a Post form
Enhancing the User Interface with AJAX
AJAX and its advantages
Using an AJAX framework in Django
Overview of jQuery JavaScript framework
Selectors, Methods, Hiding and showing elements
Accessing CSS properties and HTML attributes
Manipulating HTML documents
Handling events
Sending AJAX requests
Implementing search
Editing in place
Implementing bookmark editing
Autocomplete