Django Hello World

virtualenv 安装文档
Django Hello World步骤
  • virtualenv helloworld
  • source helloworld/bin/activate
  • pip install Django
  • django-admin.py startproject helloproject
  • cd helloproject
  • python manage.py startpapp app1
  • vim helloproject/urls.py
  • vim app1/views.py -> 增加def hello(request)  return HttpResponse(“Hello World”)
  • python manage.py runserver

发表评论

电子邮件地址不会被公开。 必填项已用*标注