Learn Web Development with Python
Get hands-on with Python Programming and Django web development
Fabrizio Romano, Gaston C. Hillar, Arun Ravindran
- 796 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Learn Web Development with Python
Get hands-on with Python Programming and Django web development
Fabrizio Romano, Gaston C. Hillar, Arun Ravindran
About This Book
A comprehensive guide to Python programming for web development using the most popular Python web framework - Django
Key Features
- Learn the fundamentals of programming with Python and building web apps
- Build web applications from scratch with Django
- Create real-world RESTful web services with the latest Django framework
Book Description
If you want to develop complete Python web apps with Django, this Learning Path is for you. It will walk you through Python programming techniques and guide you in implementing them when creating 4 professional Django projects, teaching you how to solve common problems and develop RESTful web services with Django and Python. You will learn how to build a blog application, a social image bookmarking website, an online shop, and an e-learning platform.
Learn Web Development with Python will get you started with Python programming techniques, show you how to enhance your applications with AJAX, create RESTful APIs, and set up a production environment for your Django projects. Last but not least, you'll learn the best practices for creating real-world applications.
By the end of this Learning Path, you will have a full understanding of how Django works and how to use it to build web applications from scratch.
This Learning Path includes content from the following Packt products:
- Learn Python Programming by Fabrizio Romano
- Django RESTful Web Services by GastĂłn C. Hillar
- Django Design Patterns and Best Practices by Arun Ravindran
What you will learn
- Explore the fundamentals of Python programming with interactive projects
- Grasp essential coding concepts along with the basics of data structures and control flow
- Develop RESTful APIs from scratch with Django and the Django REST Framework
- Create automated tests for RESTful web services
- Debug, test, and profile RESTful web services with Django and the Django REST Framework
- Use Django with other technologies such as Redis and Celery
Who this book is for
If you have little experience in coding or Python and want to learn how to build full-fledged web apps, this Learning Path is for you. No prior experience with RESTful web services, Python, or Django is required, but basic Python programming experience is needed to understand the concepts covered.
Frequently asked questions
Information
Concurrent Execution
- The theory behind threads and processes
- Writing multithreaded code
- Writing multiprocessing code
- Using executors to spawn threads and processes
- A brief example of programming with asyncio
Concurrency versus parallelism
Threads and processes â an overview
Quick anatomy of a thread
- User-level threads: Threads that we can create and manage in order to perform a task
- Kernel-level threads: Low-level threads that run in kernel mode and act on behalf of the operating system
- New thread: A thread that hasn't started yet, and hasn't been allocated any resources.
- Runnable: The thread is waiting to run. It has all the resources needed to run, and as soon as the scheduler gives it the green light, it will be run.
- Running: A thread whose stream of instructions is being executed. From this state, it can go back to a non-running state, or die.
- Not-running: A thread that has been paused. This could be due to another thread taking precedence over it, or simply because the thread is waiting for a long-running IO operation to finish.
- Dead: A thread that has died because it has reached the natural end of its stream of execution, or it has been killed.