zoukankan      html  css  js  c++  java
  • django 学习笔记2: install django and setup first django project

    django cant support python3.0

    python setup.py install to setup django

    django-admin.py the admin tool

    4 database support:
    postgresql, sqlite 3, mysql, oracle

    suggest: postgresql

    for simple use, sqlite3


    put the codes out of document root folder

    Goto the folder you just created, run command: django-admin.py startporject mysite, will create a folder under your working folder

    structure

    mysite/
        __init__.py
        manage.py
        settings.py
        urls.py


    __init__.py, no use
    manage.py, should be no use
    settings.py configuration
    urls.py url configuration

    python manage.py runserver

    will run django server on 8000 port


    also you can run command: python manage.py runserver 8080

  • 相关阅读:
    带你走进Ajax
    基础
    基础
    基础-文字
    C++ part6.5
    操作系统 part4
    操作系统 part3
    计算机网络 part3 HTTP&HTTPS
    计算机网络 part2
    计算机网络 part1 TCP
  • 原文地址:https://www.cnblogs.com/yeyong/p/3906387.html
Copyright © 2011-2022 走看看