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

Summary

In this chapter, we have prepared our development environment, created our first project, and learned how to launch the Django development server. We are now ready to start building our social bookmarking application!

Here is a quick summary of the Django features covered in this chapter:

  • Here is a quick summary of the Django features covered in this chapter:
  • Django can be downloaded from the official Django website at http://www.djangoproject.com/. Given that it is written in Python, the same package works on all major operating systems.
  • To start a new Django project, issue the following command:
    $ django-admin.py startproject <project-name>
  • To create database tables, issue the following command:
    $ python manage.py syncdb
  • To start the development server, issue the following command:
    $ python manage.py runserver
  • Django project settings are stored in settings.py. This file is a regular Python source file that can be edited using any source code editor. To change a variable, simply assign the desired value to it.

The next chapter takes you through a tour of the main Django components and develops a working prototype for our bookmark sharing application. It's going to be a fun chapter with many new things to learn, so keep reading!

主站蜘蛛池模板: 石棉县| 长汀县| 隆尧县| 株洲县| 登封市| 绥中县| 贡觉县| 新宁县| 巍山| 周宁县| 工布江达县| 保康县| 富平县| 鄂伦春自治旗| 兴安盟| 肥西县| 金堂县| 遵义县| 库尔勒市| 安溪县| 宁波市| 桐城市| 新兴县| 丹凤县| 肃宁县| 广灵县| 巴青县| 柳州市| 内乡县| 黄梅县| 沙田区| 辽源市| 二手房| 泸州市| 浦江县| 孝义市| 万全县| 安顺市| 诏安县| 北京市| 郁南县|