Django 的安装及访问

来源:互联网 发布:双向数据绑定的实现 编辑:程序博客网 时间:2024/05/16 09:20
#pip 安装F:\python_environment>pip install Django==1.11#到目录下源码安装python setup.py install#检查Django安装成功F:\python_environment>python -m django --version1.11# 或者import django#创建项目F:\python_www>django-adminF:\python_www>django-admin startproject web#启动服务F:\python_www\web>python manage.pyF:\python_www\web>python manage.py runserverPerforming system checks...#通过浏览器访问http://127.0.0.1:1111/F:\python_www\web>python manage.py runserverPerforming system checks...System check identified no issues (0 silenced).You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.Run 'python manage.py migrate' to apply them.June 19, 2017 - 22:49:06Django version 1.11, using settings 'myblog.settings'Starting development server at http://127.0.0.1:8000/Quit the server with CTRL-BREAK.Error: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试。#更改端口再次 访问就好了F:\python_www\web>python manage.py runserver 1111Performing system checks...