Web Programming with Python and Django

This program is designed for anyone eager to dive into the world of web development using one of the most powerful frameworks available today—Django. You will learn how to build web applications from scratch, covering essential topics such as setting up your development environment, creating dynamic web pages, managing databases, and implementing user authentication. With a hands-on approach, you'll engage in practical exercises, allowing you to apply your skills in real-world scenarios.

By the end of this course, you'll be equipped with the knowledge and confidence to develop and deploy your own web applications using Python and Django. Join us and start your journey into web development!

What you’ll learn

Introduction to Python Programming

  • Overview of Python and its features.
  • Setting up a Python development environment (installation and configuration).
  • Introduction to Python syntax, variables, data types, and basic operations.

Data Structures

  • Overview of commonly used data structures in Python (lists, tuples, dictionaries).
  • Exploring operations and methods for data manipulation and retrieval.
  • Working and processing variables and strings
  • Hands-on exercises to practice working with data structures.

Control Flow and Functions

  • Understanding conditional statements (if, else, elif) and loops (for, while) in Python.
  • Introduction to functions, parameters, and return values.
  • Practicing with hands-on exercises and coding examples.

File Handling and Modules

  • Reading from and writing to text and CSV files in Python.
  • Merging and combining multiple data files
  • Introduction to modules and libraries for extending Python's functionality.
  • Demonstrating how to import and use external modules.

SCHEDULES
 
PDJ5062 - 廣東話 07 Jun enrol
 
PDJ5061 - 廣東話 12 Jun enrol

Troubleshooting and Error Handling

  • Discussing common issues and errors in coding
  • Exploring strategies for troubleshooting and resolving problems.
  • Demonstrating error handling techniques in Python.

Introduction to GPT

  • What is GPT? Understanding the basics of language models.
  • Overview of GPT's architecture and training process.
  • Exploring the capabilities and applications of GPT models.

Preparing Questions for ChatGPT

  • Discussing strategies for preparing effective questions for ChatGPT.
  • Understanding the importance of clear and concise input prompts.
  • Exploring techniques for guiding the conversation and obtaining desired responses.

Leveraging ChatGPT for Code Generation

  • Introduction to code generation using ChatGPT.
  • Using ChatGPT to automate repetitive code writing tasks.
  • Generating code snippets for specific programming languages.
  • Best practices and considerations for using ChatGPT in code generation.

Introduction to HTML and CSS

  • Learning HTML5 Page Layout Elements
  • Using New HTML5 Tags and Attributes
  • Styling Your Web Page with CSS3
  • Designing HTML5 Form

Understanding Web Development

  • Overview of web development concepts
  • Difference between front-end and back-end development
  • Introduction to web servers and clients

Setting Up the Development Environment

  • Installing Python and pip
  • Setting up Django with a virtual environment
  • Overview of VSCode
  • Creating a new Django project
  • Understanding Django's project structure

Building Your First Django Application

  • Creating a simple Django app
  • Understanding URLs and views
  • Rendering templates using Django’s templating engine

Introduction to Django Models

  • Understanding models and database schema
  • Creating models and running migrations
  • Interacting with the database using Django ORM

Admin Interface

  • Setting up the Django admin site
  • Customizing the admin interface
  • Managing data through the admin panel

Working with Forms

  • Understanding Django forms
  • Handling form submissions
  • Validating user input

Static and Media Files

  • Serving static files (CSS, images, JavaScript)
  • Managing media uploads

Deployment Basics

  • Overview of deploying Django applications
  • Introduction to hosting services (e.g.DigitalOcean)
  • Preparing your Django app for deployment

User Authentication

  • Implementing user registration and login
  • Understanding sessions and cookies
  • Protecting views with authentication