Django Hello World

virtualenv 安装文档
https://virtualenv.pypa.io/en/latest/virtualenv.html#installation  ( http://is.gd/RM0pSJ)

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

你可能感兴趣的:(Django Hello World)