python web轻量_Python with Django 充满活力的轻量Web开发平台

Python & Django

01 MySQL

Setup Mysql

Create Database

Grant new user

01 PostgreSQL

8.4 这个是最新版本

Set up & Configure

Basic operation

Python Connector for PostgreSQL

02 Install Django

Download Source

Install Django

Linux/Mac Privileges Issues

django-admin.py

03 Django Tutorial

Start Project

Admin Console

MySiteCreation of a basic Django Project

Automatically generated admin site

Creating public interface

Form processing & Cutting down our code

最近研究发现Django多用PostgreSQL数据库,所以,需要修改上述内容。

最新Django相关的图书为:The Definitive Guide to Django 2nd Edition.pdf

可以在itpub搜索到。

为什么学习Django

1. Python不但轻量,而且不乏企业支持

2. 性能好

3. 自己喜欢

希望我自己的学习过程能够给大家带来一些思想和技术上的分享。

from django.http import HttpResponse

# a view is just a python function

# a view method must to two things

# 1. take an HttpRequest as its first parameter

# 2. return a instance of HttpResponse

def hello(request)

return HttpResponse("Hello World");

分享到:

18e900b8666ce6f233d25ec02f95ee59.png

72dd548719f0ace4d5f9bca64e1d7715.png

2009-03-03 15:22

浏览 543

评论

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值