A view in Django terminology is a regular Python function that responds to a page request by generating the corresponding page. To write our first Django view for the main page, we first need to create a Django application inside our project. You can think of an application as a container for views and data models. To create it, issue the following command within our
$ python manage.py startapp tweets
The syntax of application creation is very similar to that of project creation. We used the
startapp command as the first parameter of the
python manage.py command, and provided
tweets as the name of our application.
After running this command, Django will create a folder named