在OpenShift中提供Django静态文件

时间:2020-12-14 03:02:55

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

根据2014年3月的博客文章,OpenShift现在摆脱了一些目录,如wsgi /,wsgi / static /,data /和libs /。

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

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

1 个解决方案

#1


5  

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.conf.erb,它似乎检查你是否有一个$ OPENSHIFT_REPO_DIR / wsgi / static目录并且它保持工作。我还没有证实这是有效的,但看起来应该如此。

#1


5  

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.conf.erb,它似乎检查你是否有一个$ OPENSHIFT_REPO_DIR / wsgi / static目录并且它保持工作。我还没有证实这是有效的,但看起来应该如此。