运行一个python项目的步骤

刚接触pyrhon的小白,早上上班忘了步骤,写下来方便自己查阅,大神勿笑。。。

运行环境:workon 项目名
进入文件夹:cd:git/web/项目名

启动数据库:mongo-start
启动成功:
about to fork child process, waiting until server is ready for connections.
forked process: 2800
child process started successfully, parent exiting

运行后台管理:python manage.py admin -d -r
成功:
* Running on http://127.0.0.1:10010/ (Press CTRL+C to quit)
* Restarting with inotify reloader

运行接口程序:

python manage.py api -d -r

运行 Web 程序:

python manage.py web -d -r

你可能感兴趣的:(python)