pydash项目地址:https://github.com/k3oni/pydash
一、安装过程
1、安装pip
dnf install git python-pip -y
pip install virtualenv
2、下载软件
git clone https://github.com/koni/pydash.git
cd pydash
virtualenv pydashtest
#激活虚拟环境
source pydashtest/bin/activate
3、安装软件包
cat requirements.txt
pip install -r requirements.txt
4、进入软件目录
(pydashtest) [root@salt-master ~]# cd pydash
(pydashtest) [root@salt-master pydash]# ll
total 28
-rw-r--r-- 1 root root 0 Mar 31 11:33 __init__.py
-rw-r--r-- 1 root root 118 Mar 31 11:41 __init__.pyc
-rw-r--r-- 1 root root 3368 Mar 31 11:40 settings.py
-rw-r--r-- 1 root root 3297 Mar 31 11:41 settings.pyc
-rw-r--r-- 1 root root 2216 Mar 31 11:33 urls.py
-rw-r--r-- 1 root root 1837 Mar 31 11:51 urls.pyc
-rw-r--r-- 1 root root 387 Mar 31 11:33 wsgi.py
-rw-r--r-- 1 root root 573 Mar 31 11:41 wsgi.pyc
5、设置key (备注:key后面字符随便写)
vi settings.py
SECRET_KEY = 'nulige'
6、设置
(pydashtest) [root@salt-master pydash]# cd ..
(pydashtest) [root@salt-master pydash]# ll
total 116
-rw-r--r-- 1 root root 102400 Mar 31 11:57 db.sqlite3
-rw-r--r-- 1 root root 1133 Mar 31 11:33 LICENSE.md
drwxr-xr-x 2 root root 78 Mar 31 11:51 main
-rwxr-xr-x 1 root root 249 Mar 31 11:33 manage.py
drwxr-xr-x 2 root root 146 Mar 31 11:51 pydash
drwxr-xr-x 5 root root 82 Mar 31 11:33 pydashtest
-rw-r--r-- 1 root root 1493 Mar 31 11:33 README.md
-rw-r--r-- 1 root root 14 Mar 31 11:33 requirements.txt
drwxr-xr-x 6 root root 51 Mar 31 11:33 static
drwxr-xr-x 2 root root 82 Mar 31 11:33 templates
drwxr-xr-x 2 root root 78 Mar 31 11:51 usage
7、创建数据库
python manage.py syncdb
8、启动软件
python manage.py runserver 10.0.100.87:8000
9、界面展示
访问:http://10.0.100.87:8000