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

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!

主站蜘蛛池模板: 南和县| 平山县| 苏尼特右旗| 汝城县| 乌兰察布市| 马鞍山市| 天气| 阿巴嘎旗| 通山县| 杭锦旗| 嘉祥县| 长垣县| 茶陵县| 安多县| 海原县| 罗源县| 嘉义县| 萨迦县| 白山市| 运城市| 永和县| 平武县| 满洲里市| 岑溪市| 双流县| 汝南县| 肥城市| 舟曲县| 长汀县| 子长县| 库伦旗| 沂水县| 平度市| 潢川县| 柳林县| 宜宾县| 绿春县| 日土县| 崇仁县| 江陵县| 紫金县|