开发者

How can I automatically load fixtures into my development database but not my production database when using django-nonrel?

开发者 https://www.devze.com 2022-12-31 11:35 出处:网络
I\'d like to load some test data into my development db but not put it into my production db. In django you can create database-specific fixtures using this mechanism: http://docs.djangoproject.com/e

I'd like to load some test data into my development db but not put it into my production db.

In django you can create database-specific fixtures using this mechanism: http://docs.djangoproject.com/en/dev/ref/django-admin/#database-specific-fixtures

It is p开发者_开发问答ossible to do something similar with django-nonrel?


By default, the local datastore is separate from the production datastore.

0

精彩评论

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