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

Summary

In this chapter, we 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:

  • 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 the settings.py file. 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!

主站蜘蛛池模板: 九龙坡区| 同江市| 华阴市| 兴城市| 绿春县| 定兴县| 张家港市| 河津市| 阿巴嘎旗| 红安县| 新泰市| 云梦县| 砚山县| 连南| 邳州市| 阿瓦提县| 怀集县| 杂多县| 武隆县| 河东区| 芜湖县| 洪雅县| 大渡口区| 桓仁| 永年县| 阳春市| 景洪市| 北川| 徐汇区| 姜堰市| 沁阳市| 肥城市| 金溪县| 蒙山县| 谢通门县| 基隆市| 温宿县| 左贡县| 和田市| 博白县| 汉寿县|