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

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.
主站蜘蛛池模板: 唐山市| 油尖旺区| 南漳县| 丰镇市| 界首市| 清水河县| 长治县| 德清县| 建瓯市| 志丹县| 恩平市| 赣榆县| 玛曲县| 溆浦县| 通许县| 兴和县| 惠来县| 定州市| 金沙县| 南华县| 兰溪市| 揭东县| 马公市| 克山县| 加查县| 满城县| 德清县| 张家港市| 绥阳县| 洛扎县| 万年县| 鹰潭市| 桂平市| 曲松县| 民勤县| 高尔夫| 宣武区| 军事| 乌兰察布市| 苍梧县| 揭阳市|