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

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.
主站蜘蛛池模板: 蛟河市| 桃江县| 阳西县| 盐城市| 农安县| 奉新县| 商城县| 应用必备| 昌都县| 临沧市| 二连浩特市| 革吉县| 徐汇区| 峨山| 兖州市| 铜川市| 瑞金市| 鲁山县| 远安县| 景东| 清徐县| 麟游县| 兴国县| 外汇| 乐亭县| 铁岭县| 开原市| 玛沁县| 韶山市| 冷水江市| 新邵县| 灵台县| 磐安县| 博客| 彰武县| 奉贤区| 平罗县| 綦江县| 浦东新区| 枝江市| 丹阳市|