Django at a glance 笔记

本文介绍如何使用Django框架快速搭建应用程序。从设计模型到安装设置数据库,再到利用Django自动生成的管理界面进行数据管理。此外,还介绍了如何定义URL、编写视图以及设计模板来呈现数据。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Django at a glance

http://www.djangoproject.com/documentation/overview/
-----------------------------

Design your model:object-relational mapper

Install it: create the database

Enjoy the free API : got a free,and rich,Python API to access the data.
A dynamic admin interface: Once the models are defined,Django can

automatically create a professional ,production ready administrative

interface -- a web site that lets authenticated user add,change and

delete objects.
One typical workflow in creating Django apps is to create models and

get the admin sites up and running as fast as possible, so your staff (or

clients) can start populating data. Then, develop the way data is

presented to the public.

Design your URL's

Write your view
Each view is responsible for doing one of two things:Returing an

HttpResponse object containing the content for the requested page,or

raising an exception such as Http4.4.

Design your templates


 



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值