django+xadmin在win7-64bit下安裝記錄

### django+xadmin在win7-64bit下安裝簡單記錄python

一、下載python: https://www.python.org/ftp/python/2.7.12/python-2.7.12.amd64.msigit

安裝 python-2.7.12.amd64.msi   # 註釋選擇安裝路徑,這裏是:D:\ProgramFiles\Python27github

二、配置環境變量Path裏:  # 計算機—>右鍵—>高級系統設置—>高級—>環境變量—>修改Path,加入:django

  D:\ProgramFiles\Python27;D:\ProgramFiles\Python27\Scripts;瀏覽器

三、下載xadmin:  https://github.com/sshwsfc/xadminapp

  解壓xadmin-master.zip到D:\ProgramFiles\Python27\xadmin   # 我放置在python安裝路徑下了ssh

四、安裝django+xadmin:ide

  >pip install -r requirements.txt D:\ProgramFiles\Python27\xadmin\requirements.txt測試

五、配置環境變量Path裏:ui

  D:\ProgramFiles\Python27\Lib\site-packages\django

六、測試版本:

D:\ProgramFiles\Python27\Scripts>python

>>> import django

>>> django.get_version()

'1.9.10'

>>> quit()

七、測試頁面

>cd D:\ProgramFiles\Python27\xadmin\demo_app

>python manage.py runserver 0.0.0.0:8000      # 顯示以下信息:

D:\ProgramFiles\Python27\xadmin\demo_app>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 app

lied.

Run 'python manage.py migrate' to apply them.

October 31, 2016 - 14:50:16

Django version 1.9.10, using settings 'demo.settings'

Starting development server at http://0.0.0.0:8000/

Quit the server with CTRL-BREAK.

### 瀏覽器訪問::http://IP:8000            # 顯示頁面表示安裝成功

wKioL1gcMn6Dp-erAAAztG0jmi4874.png-wh_50

八、導入數據

D:\ProgramFiles\Python27\xadmin\demo_app>python manage.py migrate

D:\ProgramFiles\Python27\xadmin\demo_app>python manage.py createsuperuser

D:\ProgramFiles\Python27\xadmin\demo_app>python manage.py runserver 0.0.0.0:8000

### 瀏覽器訪問::http://IP:8000         

### 使用設置的帳號密碼admin\admin登陸進入系統

相關文章
相關標籤/搜索