pythonanywhere 部署 webpy
2024-10-21 18:46:25
======================= start =====================
1、 在pythonanywhere中Add a new web app。
2、 新开一个Bash ,创建文件夹。最好是使用mkvirtualenv 虚拟环境
3、 在Files管理页面上传web文件包。
4、 在Bash里解压。
5、 修改WSGI configuration file:
仔细阅读注释部分。我的网站
import sys
:个人路径
path = '/home//'
if path not in sys.path:
sys.path.append(path)
:application在index.py中
from index import application
6、在Web管理页面的Static files:管理中新建 静态文件 url 路径
如: /static /home///static
7、Reload站点。
======================= end =====================
最新文章
- Linux C语言解析.bmp格式图片并显示汉字
- .NET使用Com组件的一点点教训笔记~
- Linux配置无线网卡驱动实现无线上网
- 2015年12月10日 spring初级知识讲解(二)最小化Spring XML配置 注解
- js页面跳转参考代码大全
- Android图像格式类及图像转换方法
- Python 2.7.9 Demo - ini文件的读、写
- linux入门学习1
- fiddler--firefiox代理
- http 响应头之location
- IE6,IE7,IE8下报JS错误:expected identifier, string or number的原因及解决的方法
- 【LINUX】主进程、父进程、子进程、守护进程的概念
- Hive基础(2)---(启动HiveServer2)Hive严格模式
- NOI2001 炮兵阵地
- APACHE服务器出现No input file specified.解决方案
- TCP协议—三次握手四次挥手的原理<;转>;
- 作业-JSP简单入门
- 将 Azure 文件共享用于 Windows VM
- 【数据库】软件安全测试之SQL注入
- 网页IE轻松调用VLC播放器实现监控(组件+方法大全)【转】