Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Cloud Native Python

You're reading from   Cloud Native Python Build and deploy resilent applications on the cloud using microservices, AWS, Azure and more

Arrow left icon
Product type Paperback
Published in Jul 2017
Publisher Packt
ISBN-13 9781787129313
Length 374 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Manish Sethi Manish Sethi
Author Profile Icon Manish Sethi
Manish Sethi
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Introducing Cloud Native Architecture and Microservices 2. Building Microservices in Python FREE CHAPTER 3. Building a Web Application in Python 4. Interacting Data Services 5. Building WebViews with React 6. Creating UIs to Scale with Flux 7. Learning Event Sourcing and CQRS 8. Securing the Web Application 9. Continuous Delivery 10. Dockerizing Your Services 11. Deploying on the AWS Platform 12. Implementing on the Azure Platform 13. Monitoring the Cloud Application

Creating tweets from users

Before we start writing our web page, we need to create a route to create tweets. This can be done as follows:

    from flask import render_template 
 
    @app.route('/addtweets') 
    def addtweetjs(): 
     return render_template('addtweets.html') 

Now that, we have created the route, let's create another form in addtweets.html, which will ask the user for the required information related to tweets, and help them submit the information:

    <html> 
     <head> 
      <title>Twitter Application</title> 
     </head> 
    <body> 
    <form > 
     <div class="navbar"> 
       <div class="navbar-inner"> 
           <a class="brand" href="#">Tweet App Demo</a> 
       </div> 
      </div> 
  
<div id=...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime