- Django 1.0 Website Development
- Ayman Hourieh
- 187字
- 2021-05-21 20:19:58
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!
推薦閱讀
- PS是這樣玩的:輕松掌握 Photoshop 通關(guān)秘籍
- ModelSim電子系統(tǒng)分析及仿真(第3版)
- iPad+Procreate數(shù)字插畫設計案例教程(全彩微課版)
- AutoCAD 2010中文版基礎教程(第2版)
- ERP沙盤模擬教程
- Moldflow 2010完全自學與速查手冊(模流分析·成本控制)
- Oracle VM Manager 2.1.2
- Apache Roller 4.0 – Beginner's Guide
- Alice 3 Cookbook
- 從零開始:Photoshop工具詳解與實戰(zhàn)
- 輕松玩轉(zhuǎn)3D One AI
- Photoshop CS6案例教程(第3版)
- 新編中文版3ds Max 2016入門與提高
- Adobe創(chuàng)意大學InDesign產(chǎn)品專家認證標準教材(CS6修訂版)
- 社會調(diào)查數(shù)據(jù)管理:基于Stata 14管理CGSS數(shù)據(jù)