如何初始化我的 Satchmo 网站?
作为一名经验丰富的 PHP 程序员,我倾向于避免使用 Python 之类的东西。然而,我们都必须处理我们已经处理过的牌,我现在必须与 Satchmo 网站合作。
我的 python、django 和 satchmo 很少,所以我需要一些帮助。我可以设置开发服务器,但无法让我的网站在生产服务器上运行。
我见过“python manage.py runserver”的使用,这个解决方案甚至在 Stack Overflow 上。然而,当我看到这个解决方案时,通常有人说“我希望你不要在生产中使用它”,所以我认为这是一种非常不正确的方法。令我沮丧的是,那些似乎知道这个命令行不安全的人也不愿意与我们其他人分享,他们到底是如何准确地启动他们的 Satchmo 生产服务器的?
非常感谢。
As an experienced PHP programmer I tend to avoid things like Python. However we all must play with the cards we have been dealt with and I now have to work with a Satchmo website.
I have very little python, django and satchmo so I need some help. I'm ok with setting up a development server but I cannot get my website to work on a production server.
I've seen the use of "python manage.py runserver", this solution is even on Stack Overflow. However, when I see this solution there is usually someone saying "I hope you're not using that on production" so I assume this is a very incorrect way to do it. To my frustration the people that seem to know that this command line is insecure, also have no desire to share with the rest of us, just how excatly does one initiate their Satchmo Production server?
Many thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
要在生产服务器上部署 Django 网站,您必须使用 Apache+mod_wsgi、nginx+gunicorn、nginx+uwsgi 或任何其他支持 WSGI 的服务器来为其提供服务。 Django 文档中有一个关于使用 mod_wsgi 在 Apache 上部署 Django 的页面,对于其他解决方案,网络上有大量有用的文档。
To deploy a Django website on a production server, you have to serve it either with Apache+mod_wsgi, nginx+gunicorn, nginx+uwsgi, or any other server supporting WSGI. The Django documentation has a page on deploying Django on Apache with mod_wsgi, for the other solutions, there are plenty of useful documentation around the web.
runserver
仅用于开发/测试。它无法处理高负载、安全性等问题。Python.org有关于如何设置适当的网络服务器来服务 Python 代码的文档:
http://docs.python.org/howto/webservers.html
runserver
is just for development/testing. It won't handle high load, security, etc.Python.org has docs on how to set up a proper webserver to serve Python code:
http://docs.python.org/howto/webservers.html
Satchmo
看起来像是 django 的衍生品。如果您的部署环境是带有 apache 的 linux,那么在生产环境中设置 django 非常简单,然后使用mod_wsgi
,该文档有详细记录 此处 如果是 Windows,那么您可以使用 pyisapie 模块并按照文档进行操作 此处希望有所帮助
Satchmo
seems like a django derivative. Setting up django on production is quite easy if your deployment environment is linux with apache then usemod_wsgi
which is well documented here if its windows then you can use the pyisapie module and follow the documentation hereHope that helps