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

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, 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 user pages.
主站蜘蛛池模板: 浙江省| 建阳市| 攀枝花市| 锡林郭勒盟| 五河县| 五原县| 杭锦旗| 岚皋县| 德兴市| 谢通门县| 兴文县| 北票市| 丰都县| 和林格尔县| 法库县| 岗巴县| 松滋市| 高阳县| 灵川县| 定州市| 凤山县| 馆陶县| 安福县| 曲松县| 井冈山市| 元江| 富阳市| 闽清县| 青阳县| 吴忠市| 托里县| 东乡族自治县| 上杭县| 准格尔旗| 吉林市| 凤城市| 沿河| 海兴县| 北京市| 抚顺县| 伊通|