- 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!
推薦閱讀
- Sphinx Search Beginner's Guide
- Flash CC從入門到精通
- SolidWorks 2008機(jī)械設(shè)計(jì)一冊通
- 邊做邊學(xué):Photoshop圖像制作案例教程(第2版·Photoshop 2020)
- Drools規(guī)則引擎技術(shù)指南
- Django 1.2 E/commerce
- 中文版Photoshop CS6平面設(shè)計(jì)實(shí)用教程(第2版)
- Microsoft Dynamics GP 2010 Reporting
- 新印象:CINEMA 4D電商設(shè)計(jì)基礎(chǔ)與實(shí)戰(zhàn)(全視頻微課版)
- Adobe創(chuàng)意大學(xué)Premiere Pro影視剪輯師標(biāo)準(zhǔn)實(shí)訓(xùn)教材(CS6修訂版)
- 剪映:零基礎(chǔ)輕松掌握手機(jī)剪輯短視頻
- MODx Web Development
- 中文版3ds Max 2016基礎(chǔ)培訓(xùn)教程
- 3ds Max三維動(dòng)畫制作項(xiàng)目式教程
- Illustrator 2022從入門到精通