官术网_书友最值得收藏!

Chapter 3. Building a Social Bookmarking Application

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, store and manage data in the database using models, and 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. The 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 user pages
主站蜘蛛池模板: 镇沅| 汾阳市| 紫阳县| 阳西县| 乾安县| 祥云县| 威远县| 沙河市| 时尚| 永寿县| 昭觉县| 民丰县| 蓬溪县| 上饶市| 磴口县| 鄂尔多斯市| 灵武市| 洪湖市| 灵石县| 石棉县| 图们市| 定结县| 桂平市| 香港| 波密县| 防城港市| 廉江市| 田阳县| 无为县| 玉树县| 延庆县| 太白县| 惠安县| 米泉市| 本溪| 芜湖县| 呼和浩特市| 长宁区| 台湾省| 罗定市| 浦城县|