Alex Dai Playground

Python 安裝 Django

| Comments

安裝 Pip

下載 get-pip.py ,用 python 執行

python get-pip.py

Install Django

pip install "django<1.8"

P.S: 環境變數記得要加入 E:\Python27\Scripts;E:\Python27\Scripts;

建立 Django Project

django-admin.py startproject mysite

cd mysite

python manage.py runserver

http://localhost:8000/

建立App

mysite 目錄下執行
python manage.py startapp myapp

Comments

comments powered by Disqus