======================= 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 =====================

最新文章

  1. Linux C语言解析.bmp格式图片并显示汉字
  2. .NET使用Com组件的一点点教训笔记~
  3. Linux配置无线网卡驱动实现无线上网
  4. 2015年12月10日 spring初级知识讲解(二)最小化Spring XML配置 注解
  5. js页面跳转参考代码大全
  6. Android图像格式类及图像转换方法
  7. Python 2.7.9 Demo - ini文件的读、写
  8. linux入门学习1
  9. fiddler--firefiox代理
  10. http 响应头之location
  11. IE6,IE7,IE8下报JS错误:expected identifier, string or number的原因及解决的方法
  12. 【LINUX】主进程、父进程、子进程、守护进程的概念
  13. Hive基础(2)---(启动HiveServer2)Hive严格模式
  14. NOI2001 炮兵阵地
  15. APACHE服务器出现No input file specified.解决方案
  16. TCP协议—三次握手四次挥手的原理<转>
  17. 作业-JSP简单入门
  18. 将 Azure 文件共享用于 Windows VM
  19. 【数据库】软件安全测试之SQL注入
  20. 网页IE轻松调用VLC播放器实现监控(组件+方法大全)【转】

热门文章

  1. MySQL 如何实现表的创建、复制、修改与删除
  2. UBUNTU安装代码阅读器Understand
  3. Centos7下areaDetector IOC的编译(回收站捡回)
  4. 郁金香 对MFC 编辑框的查看 与更改
  5. 【Gerald and Giant Chess】
  6. 解密Prompt系列2. 冻结Prompt微调LM: T5 & PET & LM-BFF
  7. ChatGPT API使用介绍
  8. 工业仿真:Chai 3D之点云技术
  9. asp汉字转拼音小写
  10. linux kali 换源细节