Hello Web App: Learn How to Build a Web App.

Hello Web App: Learn How to Build a Web App.

Tracy Osborn

Language: English

Pages: 142

ISBN: B00U5MMZ2E

Format: PDF / Kindle (mobi) / ePub


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

Written by a designer and aimed at non-programmers, Hello Web App teaches the basics of web app programming using Python and Django. The tutorial uses down-to-earth, friendly, and jargon-free writing to walk you through choosing a project, setting up a database, creating your website, building features, and launching your app so you can start working with real customers and users.

Simply the easiest way to get started building your own dynamic websites.

Table of Contents

  • Chapter 1: What We’re Building
  • Chapter 2: Prerequisites
  • Chapter 3: Getting Started
  • Chapter 4: Setting Up Your Templates
  • Chapter 5: Fun With Template Tags
  • Chapter 6: Adding Dynamic Data
  • Chapter 7: Displaying Dynamic Information in the Templates
  • Chapter 8: Setting Up Individual Object Pages
  • Chapter 9: Forms.py Funsies
  • Chapter 10: Adding a Registration Page
  • Chapter 11: Setting Up Basic Browse Pages
  • Chapter 12: Quick Hits: 404 Pages, requirements.txt, and Testing
  • Chapter 13: Deploying Your Web App
  • Chapter 14: What To Do If Your App Is Broken
  • Chapter 15: Important Things to Know
  • Chapter 16: Moving Forward

Content Everywhere

Jump Start HTML5

Clout: The Art and Science of Influential Web Content (Voices That Matter)

MongoDB Cookbook

Above the Fold: Understanding the Principles of Successful Web Site Design

Learning Firefox OS Application Development

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

admin. Commit your work. Next, we’ll add a registration page so customers can create pages of their own. Note: While your slug was created automatically based on the Name when we added the object, changing the name of the object won’t change the slug. For example, if your name was “This Name” and your slug was this-name, and you updated the name to “Another Name”, the slug will continue to be this-name. What’s up with that? It’s actually quite smart — if this page was on the Internet with people

registration flow You’re almost done with this doozy of a chapter. The last thing we need to do is set up an additional registration page so when a new user signs up, they’ll also set up their Thing. First, add a couple new URLs to our urls.py file: “urls.py” 10 # add this to the top 11 from collection.backends import MyRegistrationView “urls.py” 45 url(r'^accounts/register/$', 46 MyRegistrationView.as_view(), 47 name='registration_register'), 48 url(r'^accounts/create_thing/$', 49

the database Retrieving and filtering information with QuerySets Setting Up Individual Object Pages Adding the new pages to our URL definitions Create the view Setting up the template Forms.py Funsies Update your urls.py And then add your view… Create your forms.py file Adding a Registration Page Installing our first third party plugin for registration Setting up password reset functionality Changing our model so Users can own a Thing Updating your registration flow Setting Up Basic Browse Pages

usually help you find the problem Googling the error usually comes up with helpful answers Ask for help Important Things to Know Code style Documentation Security Using the Django Shell Moving Forward Keep building your app Great books and additional reading Additional tutorials Free online classes In-person programming schools and development courses Stay in touch with Hello Web App Special Thanks Super duper thanks to our sponsor Book reviewers, editors, and testers Help and suggestions

template tags: “views.py” 4 def index(request): 5 number = 6 6 # don't forget the quotes since it's a string, 7 # not an integer 8 thing = "Thing name" 9 return render(request, ‘index.html', { 10 'number': number, 11 # don't forget to pass it in, and the last comma 12 'thing': thing, 13 }) Right now it’s essentially saying: “When the index page is viewed, display this template and pass along these two variables.” Now we want to update that to, “When the index page is viewed, find all things

Download sample

Download