zoukankan      html  css  js  c++  java
  • django初体检课程

    最简便的Python web开发框架

    C:WindowsSystem32>E:
    
    E:>django-admin startproject mysite
    
    E:>cd mysite
    
    E:mysite>python manager.py runserver
    python: can't open file 'manager.py': [Errno 2] No such file or directory
    
    E:mysite>python manage.py runserver
    Performing system checks...
    
    System check identified no issues (0 silenced).
    
    You have unapplied migrations; your app may not work properly until they are applied.
    Run 'python manage.py migrate' to apply them.
    October 15, 2016 - 04:41:57
    Django version 1.8, using settings 'mysite.settings'
    Starting development server at http://127.0.0.1:8000/
    Quit the server with CTRL-BREAK.
    [15/Oct/2016 04:42:29]"GET /favicon.ico HTTP/1.1" 404 1936
    [15/Oct/2016 04:42:31]"GET / HTTP/1.1" 200 1767
    [15/Oct/2016 04:42:31]"GET /favicon.ico HTTP/1.1" 404 1936
    E:mysite>python manage.py runserver 0.0.0.0:8000
    Performing system checks...
    
    System check identified no issues (0 silenced).
    
    You have unapplied migrations; your app may not work properly until they are applied.
    Run 'python manage.py migrate' to apply them.
    October 15, 2016 - 05:12:46
    Django version 1.8, using settings 'mysite.settings'
    Starting development server at http://0.0.0.0:8000/
    Quit the server with CTRL-BREAK.
    
    E:mysite>
    E:mysite>python manage.py shell
    E:Anacondalibsite-packagesdjangodbackendssqlite3ase.py:57: RuntimeWarning: SQLite received a naive datetime (2016-10-15 05:14:48.740000) while time zone support is active.
      RuntimeWarning)
    
    Python 2.7.12 |Anaconda 4.2.0 (32-bit)| (default, Jun 29 2016, 11:42:13) [MSC v.1500 32 bit (Intel)]
    Type "copyright", "credits" or "license" for more information.
    
    IPython 5.1.0 -- An enhanced Interactive Python.
    ?         -> Introduction and overview of IPython's features.
    %quickref -> Quick reference.
    help      -> Python's own help system.
    object?   -> Details about 'object', use 'object??' for extra details.
    
    In [1]:
  • 相关阅读:
    nginx内置变量
    MySQL获取错误编号 try判断 获取 Exception 上的错误
    MySQL错误代码大全(转)
    PHP递归菜单/权限目录(无限极数组)
    PHP魔术方法
    php and和&&的一个坑(文章是发现其他博客,保存自己笔记)
    nginx配置php与前后端分离(文档只供本人观看,接受错误但勿喷!)
    servlet的构造器与init方法
    模板方法设计模式
    MVC
  • 原文地址:https://www.cnblogs.com/chang1203/p/5962683.html
Copyright © 2011-2022 走看看