djangomongodbdjango-nonreldjango-mongodb-engine

django-mongodb engine saves data in which collection?


I am using django-mongodb engine to connect django with mongodb. I have a model in my application named as bandwidth. when i save data through python manage.py shell , it saves data in a collection named as app_bandwidth. How does this engine saves this data?? Also can I modify the collection name to be per_app_bandwidth.


Solution

  • You can change the collection by setting the db_table in the MongoOptions meta class.

    See: http://www.django-mongodb.org/reference/model-options.html