摘要: 1、nginx文件的配置 路径:/etc/nginx/conf.d/ example.conf 启动:service nginx [start]/[restart]/[stop] 2、uwsgi文件的配置 在项目的根目录下面,与manage.py同目录 example_uwsgi.ini 启动:uw 阅读全文
posted @ 2017-08-29 17:05 kingrain 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 以下用一个网站 ocean_monitor 举例 MySQL 安装与配置 安装 MariaDB is shipped in the CentOS repo as of CentOS 7 instead of mysql.if you still want to install mysql you n 阅读全文
posted @ 2017-08-29 14:42 kingrain 阅读(248) 评论(0) 推荐(0) 编辑
摘要: setting.py文件中 其中 zh-Hans是简体中文 zh-Hant是繁体中文 所以更改setttings.py 下 LANGUAGE_CODE = 'zh-Hans'即可 # 英文 LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True ... 阅读全文
posted @ 2017-08-29 10:07 kingrain 阅读(1978) 评论(0) 推荐(0) 编辑