-
Book Overview & Buying
-
Table Of Contents
Learning Website Development with Django
By :
In the previous chapter we learned how to create an empty project, enter the database settings, and run the development server. Now we will start writing our bookmark-sharing application, and learn about views, models and templates in the process.
You can think of this chapter as a prolonged tour of the main Django components. You will learn how to create dynamic pages using views, how to store and manage data in the database using models, and how to simplify page generation using templates. While learning about these features, you will form a solid idea of how Django components work and interact with each other. Later chapters will explore these components deeper, as we develop more features and add them to our application.
The following topics are covered in this chapter:
URLs and Views: Creating the main page.
Models: Designing an initial database schema.
Templates: Creating a template for the main page.
Putting it all together: Generating...
Change the font size
Change margin width
Change background colour