在OpenShift中提供Django静态文件 [英] Serving Django static files in OpenShift

查看:95
本文介绍了在OpenShift中提供Django静态文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 2014年3月博客文章,OpenShift现在已经摆脱一些目录,如wsgi /,wsgi / static /,data / and libs /.

According to the March 2014 blog post, OpenShift now got rid of some directories like wsgi/, wsgi/static/, data/ and libs/.

鉴于我使用wsgi / static为此目的,我应该如何提供django静态文件从现在起?

Given I used wsgi/static for this purpose, how I am supposed to serve django static files from now on?

推荐答案

根据 openshift.conf.erb ,它好像它检查你是否有一个 $ OPENSHIFT_REPO_DIR / wsgi / static 目录,它保持工作。我没有验证这是有效的,但它看起来应该是这样的。

According to openshift.conf.erb, it seems like it checks if you have a $OPENSHIFT_REPO_DIR/wsgi/static directory and it keeps it working. I haven't verified that this works, but it looks like it should.

这篇关于在OpenShift中提供Django静态文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆