Passing variables from python to html - Django Web Development with Python 5

Channel:
Subscribers:
1,410,000
Published on ● Video Link: https://www.youtube.com/watch?v=nWRboXrcipU



Duration: 14:24
212,923 views
1,579


Welcome to the fifth part of our Django web development with Python tutorial series. In this tutorial, we're going to cover passing variables from Python to our HTML templates. To try this, we're going to build our "contact" page. Adding a new page, of the personal app, what are we certain to need?

We will need a view, and a url pattern to return that view. Let's head into the personal/views.py file first.

Text-based tutorial and sample code: https://pythonprogramming.net/jinja-variables-django-python-tutorial/

https://pythonprogramming.net
https://twitter.com/sentdex
https://www.facebook.com/pythonprogramming.net/
https://plus.google.com/+sentdex




Other Videos By sentdex


2016-03-02[See Description] Pipeline API Intro - Python for Finance with Quantopian and Zipline 19
2016-02-19SSL for HTTPS with Apache server - Flask web development with Python 35
2016-02-16SSL for HTTPS with nginx - Django Web Development with Python 12
2016-02-12Publishing to a Web Server - Django Web Development with Python 11
2016-02-08Data Analysis simplified with Ensmo.com
2016-02-08Individual blog pages - Django Web Development with Python 10
2016-02-01Admin - Django Web Development with Python 9
2016-01-30Database & Migrations - Django Web Development with Python 8
2016-01-28Blog View and Template - Django Web Development with Python 7
2016-01-26Beginning Blog - Django Web Development with Python 6
2016-01-24Passing variables from python to html - Django Web Development with Python 5
2016-01-22Bootstrap HTML CSS - Django Web Development with Python 4
2016-01-21Jinja Templating - Django Web Development with Python 3
2016-01-20Creating App - Django Web Development with Python 2
2016-01-19Introduction - Django Web Development with Python 1
2016-01-17UPDATE and DELETE - SQLite3 with Python 3 part 5
2016-01-17Graph from database table example - SQLite3 with Python 3 part 4
2016-01-17Read from (SELECT) Database table - SQLite3 with Python 3 part 3
2016-01-17Inserting variables to database table - SQLite3 with Python 3 part 2
2016-01-17Creating a database, table, and inserting - SQLite3 with Python 3 part 1
2016-01-11Haar Cascade for image & video object classification - OpenCV w/ Python for Image Video Analysis 21



Tags:
Django Web Framework (Software)
Web Development (Interest)
Python (Programming Language)
HTML (Programming Language)
Variable
website
create
develop
dev
tutorial
how-to
flask
web2py
app
webapp
web app
framework
paradigm
Web Application (Industry)