开发者

How do I initialise my Satchmo website?

开发者 https://www.devze.com 2023-04-02 16:31 出处:网络
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.

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.


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 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 seems like a django derivative. Setting up django on production is quite easy if your deployment environment is linux with apache then use mod_wsgi which is well documented here if its windows then you can use the pyisapie module and follow the documentation here

Hope that helps

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号