会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Amazing Code!
Life is a marathon not a sprint.
博客园
首页
新随笔
联系
管理
2017年8月15日
在pythonanywhere上部署Django应用
摘要: 参考:https://tutorial.djangogirls.org/zh/deploy/资料讲的很明了,仅在设置上做几点补充。1、设置相对路径import osBASE_DIR = os.path.dirname(os.path.dirname(__file__))使用了魔法方法 __file__,可以获取到当前文件(包含这个代码的文件)的路径。os.path.dirname(__file__...
阅读全文
posted @ 2017-08-15 17:28 丹阳~
阅读(782)
评论(0)
推荐(0)
编辑
公告