zoukankan      html  css  js  c++  java
  • start django server

    go to directory of Django in command line,such as G:\Documents and Setting\rss2008

    \google_appengine\lib\django>
    type:python setup.py install
    this command will create folder named django in G:\python25\Lib\site-packages\ and file
    named django-admin.py in G:\python25\Scripts\

    Next step is to start a project named mysite and run django server:
    first: setup the file path of django-admin.py as system path,
    second: Go into directory you want to begin a project,such as G:\Documents and
    Setting\rss2008\,type command: django-admin.py startproject mysite,
     a project named mysite will be produced.
    third: enter into mysite directory and type command:python manage.py runserver
    you can browser in http://127.0.0.1:8000/

    for more details,refer to django book's chapter two

    启动DJANGO SERVER,将光标定位在mysite的文件夹,如

    G:\Documents and Settings\rss2008\mysite>
    键入:python manage.py runserver
    就可启动。
    在浏览器中,输入:http://127.0.0.1:8000/ 访问。
  • 相关阅读:
    iOS开发系列-Category
    OC开发系列-内存管理
    OC开发系列-@property和@synthesize
    OC开发系列-成员变量的作用域
    OC开发系列-类与对象
    MySQL
    JavaWeb
    POJ1845-Sumdiv大数约数和
    poj1159 Palindrome 区间DP
    poj 2955 Brackets 区间DP
  • 原文地址:https://www.cnblogs.com/mill2002/p/1381649.html
Copyright © 2011-2022 走看看