Using Django with MySQL in WebFaction
I'm a new user in webfaction and have some experience writing python web apps mostly in mediate开发者_如何学运维mple servers, although I'm not an expert in server administration. I've always used MySQL as my data provider. Reading the WebFaction documentation, the choice for database engine in the tutorial is postgreSQL. Is any restriction about using any other database engine?.
A quick google search reveals WebFaction uses MySQL as well.
http://docs.webfaction.com/user-guide/databases.html
Just select MySql from the dropdown instead of PostgreSQL.
In fact, now that I've logged in, I see it's the default choice.
No, not at all. I have apps running on WebFaction that use both to the same effect. In some ~2 years that I've been a WebFaction user, I haven't encountered anyone that suggested that one or the other has less load/yields better performances and that certainly hasn't been the case in my environment. So make it a choice of personal preferences or project requirements which of the two you take.
If you still have any concerns, you can ask them on the WebFaction Community page. The staff members are always happy to exhaustively address any of your questions in full detail. It's a SO Q&A clone, so you should be feeling right at home.
The last I checked (and I'm an active Django/MySQL/Webfaction user), you can use MySQL if you like. You would specify django.db.backends.mysql
as you DB engine.
精彩评论