- Learning Website Development with Django
- Ayman Hourieh
- 199字
- 2021-07-02 11:41:16
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!
推薦閱讀
- 剪映短視頻制作全流程:剪輯、調色、字幕、音效
- Oracle SOA Suite Developer's Guide
- AutoCAD快速自學寶典(2018中文版)
- 超簡單的攝影后期書
- Flash CC動畫制作案例教程
- Procreate+ SketchUp +Photoshop建筑設計手繪表現技法
- Creo 4.0從入門到精通
- 綁定的藝術:Maya高級角色骨骼綁定技法(第2版)
- 中文版Photoshop CS6全能修煉圣經(移動學習版)
- 3dsMax 2018動畫制作基礎教程(第4版)
- 3D打印輕松實踐:從材料應用到三維建模
- Getting Started with Oracle BPM Suite 11gR1 – A Hands/On Tutorial
- SketchUP草圖繪制從新手到高手
- Photoshop CC設計與應用任務教程
- 老郵差 Photoshop數碼照片處理技法 圖層篇(修訂版)