Creating App – Django Web Development With Python 2

Creating App – Django Web Development With Python 2
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 startapp webapp

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

The app is indeed treated as its own package, with its own, along with other files. For now, we will concern ourselves with, and we’re actually going to add another file


Thanks! You've already liked this
No comments