Leanpub Header

Skip to main content

Hello Web App

Learn how to build a web app using Django and Python! Updated for Django 3.2.

Learn to code your own web app! Go from idea generation to launching your web app to potential customers in this short and friendly book. Updated for Django 2.0 and Python 3.

Minimum price

$14.95

$24.95

You pay

$24.95

Author earns

$19.96

Packages

Details
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
125
Readers
138
Pages
About

About

About the Book

Learn how to code web apps and get on the path to building your next side project, your lifestyle business, or your startup.

Updated for Django 3.2.

Hello Web App is written for non-programmers by a designer, and will walk you through every step you need before launching your web app live to real customers. No jargon, simple and friendly language, using the Python programming language and the Django framework. 

This book doesn't walk you through a specific tutorial, but instead uses a generic example (a "collection of things") to allow you to create something that interests you. A blog is a collection of posts, a store is a collection of products, a directory is a collection of people. The possibilities are endless.

Learn by doing—creating a project unique to you while teaching yourself how to build a web app. 

What you'll learn

Part 1

How to build a web app with Django

Django is the easiest way to launch a web app with users, registration, and dynamic objects.

How to use the Django admin

The best part about Django! Learn how to view and update your database using the Django admin.

Adding user registration

Allow folks to sign up for your web app! Learn how to add registration and login pages.

How to add payments with Stripe

Want to start generating revenue? Learn in this quick-and-easy chapter on adding Stripe.

Launch your web app on Heroku

Get your web app live on the internet for folks to see! Deployment made easy.

Part 2

Add user-uploaded images

Allow your users to upload images for their profiles or products.

Editing and resizing images

Learn how to set up your project to automatically resize or edit images.

Working with sessions

Learn how to store data short-term.

Learn how to work with multiple models

Break out your project into multiple models to store more information.

How to add payments with Stripe

Monetize your site and add payments or subscriptions to your accounts.

Adding Gulp, Sass, and other front-end technology

Learn how to integrate front-end tools and Node into your Django web app.

Adding an API

Add an API to your web app so your data can be accessed and used by other apps.

And more!

Share this book

Packages

Pick Your Package

All packages include the ebook in the following formats: PDF, EPUB, and Web

The Book

Minimum price

Suggested price$14.95

$9.95

    Add the Custom Designed PDF

    Minimum price

    Suggested price$24.95

    Add the custom designed Hello Web App PDF to your order!

    $14.95

    • The Custom Designed PDF
      The custom designed Hello Web App PDF — the same design that is in the printed paperback.

    This book is also available in the following packages:

    • Complete Hello Web App Package

      The entire Hello Web App collection — Leanpub PDF, .mobi, and .ePub files, custom designed PDF, and 15 instructional screencasts to walk you through Hello Web App.

      • The Custom Designed PDF
        The custom designed Hello Web App PDF — the same design that is in the printed paperback.
      • Instructional videos
        15 instructional videos and screencasts including: How to use Git, using the command line, a walkthrough of real life web app code, a walkthrough of creating a unique website feature, and 11 videos covering every chapter of the book.
      Minimum price
      $79.00
      Suggested price
      $79.00

    Author

    About the Author

    Tracy Osborn

    Designer, developer, author, entreprenerd. Program manager at TinySeed. Author of Hello Web Books. Blogging at tracyosborn.com.

    Leanpub Podcast

    Episode 74

    An Interview with Tracy Osborn

    Contents

    Table of Contents

    Introduction

    What We’re Building

    1. MVP: Minimum Viable Product

    Prerequisites

    1. HTML and CSS
    2. Python (just a bit)
    3. Suggestion: A Linux or Mac computer

    Getting Started

    Setting Up Your Templates

    1. Adding a URL to urls.py
    2. Creating your first view
    3. Adding static files

    Fun With Template Tags

    1. Building complex templates with inheritance
    2. Adding a few other static pages
    3. Passing in variables and template tags

    Adding Dynamic Data

    1. Your local database
    2. Setting up your model
    3. Finishing setting up your database with migrations
    4. Using the Django admin

    Displaying Dynamic Information in the Templates

    1. Querying for info from the database
    2. Retrieving and filtering information with QuerySets

    Setting Up Individual Object Pages

    1. Adding the new pages to our URL definitions
    2. Create the view
    3. Setting up the template

    Forms.py Funsies

    1. Update your urls.py
    2. And then add your view…
    3. Create your forms.py file

    Adding a Registration Page

    1. Installing our first third party plugin for registration
    2. Setting up password reset functionality

    Associating Users with Objects

    1. Changing our model so Users can own a Thing
    2. Updating your registration flow

    Setting Up Basic Browse Pages

    1. Set up your URL routing
    2. Set up the view
    3. Create the template
    4. Updating your nav and setting up redirects

    Quick Hits: 404 Pages, requirements.txt, and Testing

    1. Setting up 404 and 500 error pages
    2. Setting up a requirements.txt
    3. Setting up your first tests

    Deploying Your Web App

    Setting up Heroku

    1. Installing a few extra packages
    2. Creating your Procfile
    3. Setting up your static files for production
    4. Creating your app on Heroku
    5. Setting up your production database

    What To Do If Your App Is Broken

    1. Error pages usually help you find the problem
    2. Googling the error usually comes up with helpful answers
    3. Ask for help

    Important Things to Know

    1. Code style
    2. Documentation
    3. Security
    4. Using the Django Shell

    Moving Forward

    1. Keep building your app
    2. Great books and additional reading
    3. Additional tutorials and resources
    4. Free online classes
    5. In-person programming schools and development courses
    6. Stay in touch with Hello Web App

    References

    Friendly Note

    About the Author

    Get the free sample chapters

    Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

    The Leanpub 60 Day 100% Happiness Guarantee

    Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

    Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

    You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

    So, there's no reason not to click the Add to Cart button, is there?

    See full terms...

    Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

    We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

    (Yes, some authors have already earned much more than that on Leanpub.)

    In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

    Learn more about writing on Leanpub

    Free Updates. DRM Free.

    If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

    Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

    Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

    Learn more about Leanpub's ebook formats and where to read them

    Write and Publish on Leanpub

    You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

    Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

    Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

    Learn more about writing on Leanpub