2š
If youāre not using the development server for development of the django project, it sounds like production to me. Is deploying your application with Apache and mod WSGI worth the hassle? Thatās up to you, but the advice of the Django developers is pretty unambiguous.
DO NOT USE THIS SERVER IN A PRODUCTION SETTING. It has not gone through security audits or performance tests. (And thatās how itās gonna stay. Weāre in the business of making Web frameworks, not Web servers, so improving this server to be able to handle a production environment is outside the scope of Django.)
For your second question, Iām not sure what you mean by ācorruptedā. If two users are changing the same object at the same time, the second user to save can inadvertently revert the first userās changes:
Consider two users editing the same Person
. The first user changes the first name, then the second user changes the second name. Because the second user loaded the change page before the first user saved, the first name is changed back to Joe.
| Description | First Name | Second Name |
=============================================
| initial value | Joe | Smith |
| first user | Joseph | Smith |
| second user | Joe | Bloggs |
=============================================
0š
Are you talking about corruption happening as a result of two separate instances of django running against the same database? If thatās the case, I can definitely see a possibility of data corruption as the Djangoās ORM API and Forms API arnāt designed to be distributed in this manner.
As far as the definition of a āproductionā server. My understanding is that the dev server wasnāt designed for reliability, availability, security, or quality in general. For example, it can only serve a single request at a time. Having said that, every use case defines its own set of requirements that defines a production environment. What I consider āproductionā for my needs, will not satisfy Amazonās definition of production š
- [Answered ]-Django count guest user when visiting of index page
- [Answered ]-Getting Django current user on iOS app
- [Answered ]-What is the most decent way to work with JavaScripts in Django projects?
- [Answered ]-Django admin site