Creating App - Django Web Development with Python 2

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



Duration: 17:21
427,643 views
4,241


Welcome to the second Django web development with Python tutorial. This tutorial picks up from the previous one, and is focused on getting a simple page to render some text. After you did the startproject command, a new directory is created, called whatever you named it. We called it mysite. Change directory into your new directory cd mysite. Next, we create a new app for this:

python manage.py startapp webapp

Now a new directory exists, called webapp. In here, we see a lot of similar files, and some new ones:

webapp/
migrations/
__init__.py
admin.py
apps.py
models.py
tests.py
views.py
The app is indeed treated as its own package, with its own __init__.py, along with other files. For now, we will concern ourselves with views.py, and we're actually going to add another file urls.py.

http://pythonprogramming.net
https://twitter.com/sentdex




Other Videos By sentdex


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
2016-01-11Training Haar cascade object detection - OpenCV with Python for Image and Video Analysis 20
2016-01-11Cleaning images and creating description files - OpenCV with Python for Image and Video Analysis 19
2016-01-11Gathering Images for Haar Cascade - OpenCV with Python for Image and Video Analysis 18



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