Introduction to Django

Introduction to Django

Bascom Bridge’s  Introduction to Django training teaches existing Python developers the fundamentals of creating Web applications using the popular Django framework. Attendees learn how to properly architect MVC (model view controller) applications using Django and integrate forms and file management. Participants also learn how to create and execute automated tests to validate their code quality.

Note: This course can be taught for either Python 2.x or Python 3.x.

 

DJANGO TRAINING OBJECTIVES

All students will:

  • Develop web sites based on content stored in a relational database management system
  • Understand the model view controller (MVC) pattern and how it is implemented in Django
  • Create Django templates for easy-to-modify views
  • Map views to URLs
  • Take advantage of the built-in Admin interface
  • Provide HTML form processing
  • Integrate automated tests with your code

DJANGO TRAINING PREREQUISITES

All students should have a working knowledge of Python, HTML 5, and CSS.

DJANGO TRAINING MATERIALS

All attendees receive comprehensive course materials.

SOFTWARE NEEDED FOR EACH PC:

  • Python 2.7 or later (including 3.x) (available from http://www.python.org)
  • Django framework (pip install django)
  • A text editor or IDE (PyCharm Community Edition is an excellent free editor if you don’t have a strong preference)
  • For classes delivered online, all participants need either dual monitors or a separate device logged into the online session so that they can do their work on one screen and watch the instructor on the other. A separate computer connected to a projector or large screen TV would be another way for students to see the instructor’s screen simultaneously with working on their own.

DJANGO TRAINING OUTLINE

  • Introduction
  • What is Django?
    • Django is a framework
    • Frameworks versus Packages
    • What can it do?
    • What are the alternatives?
  • Django Architecture
    • Sites and apps
    • Shared configuration
    • Minimal Django layout
    • Built-in flexibility
  • Configuring a Project
    • Executing manage.py
    • Starting the project
    • Database setup
    • The development server
  • Adding an application
    • Generate the application files
    • Application-specific configuration
  • Creating models with Django ORM
    • Defining models
    • Related objects
    • SQL Migration
    • App configuration
    • Accessing models
  • Login for Nothing and Admin for Free
    • Setting up the admin user
    • Running the admin site
    • Tweaking the admin interface
    • Changing the admin index page
  • Basic Views (AKA Controllers)
    • What is a view
    • HttpResponse
    • URL route configuration
    • Shortcut: get_object_or_404()
  • Templates (AKA Views)
    • About templates
    • Django template syntax
    • Static files
    • Loading templates
    • The url tag
    • Shortcut: template.render()
  • Querying the Models
    • QuerySets
    • Chaining filters
    • Slicing QuerySets
    • Q objects
  • Working with Templates
    • Variable lookups
    • Comments
    • Inheritance
    • Filters
    • Escaping HTML
  • Forms
    • Forms overview
    • GET and POST
    • The Form class
    • Processing the form
    • Widgets
    • Validation
    • Forms in templates
    • Beyond the basics
  • Static File Management
    • Types of static files
    • Configuring access
    • Namespacing
    • Templates
    • Deploying from outside Django
  • Generic Views
    • About generic views
    • Types of generic views
    • Default generic views
    • Class-based generic views
    • List and detail views
  • Automated Testing
    • Why create tests?
    • When to create tests
    • Using Django’s test framework
    • Using the test client
    • Running tests
    • Checking code coverage
  • Conclusion

Send a Comment

Your email address will not be published.

CONTACT US

+91 9376007676  

INQUIRY NOW


Introduction to Django

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...
  • Course No : DGO-100
  •  Theory : 40%
  •  Lab : 60%
  • Duration : 18 hours
Scroll Up
Skip to toolbar