使用Django建立网站

# django-admin startproject csvt01

# cd csvt01

# django-admin startapp blog

# vim csvt01/settings.py

  app add 'blog',

# vim csvt01/urls.py

  from blog import views

  url(r'^blog/index/$',views.index)

# vim blog/views.py  

from django.http import HttpResponse as hp

def index(req):
return hp('<h1>Hello World!!!</h1>')

# python3 manage.py runserver

# url:127.0.0.1:8000/blog/index

上一篇:SQL Server 进阶 01 数据库的设计


下一篇:SQL Server进阶(七)集合运算