معرفی شرکت ها


dev_db-0.3.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Tool to automatically create a development database for local development by sampling your production database. It maintains referential integrity by looking up the dependencies for the selected rows.
ویژگی مقدار
سیستم عامل -
نام فایل dev_db-0.3.2
نام dev_db
نسخه کتابخانه 0.3.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Thierry Schellenbach
ایمیل نویسنده thierryschellenbach@gmail.com
آدرس صفحه اصلی http://github.com/tschellenbach/dev_db
آدرس اینترنتی https://pypi.org/project/dev_db/
مجوز Copyright (c) Thierry Schellenbach (http://www.mellowmorning.com) All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - Neither the name of Thierry Schellenbach. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Thierry Schellenbach. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Django development database =========================== Tool to automatically create a development database for local development by sampling your production database. It maintains referential integrity by looking up the dependencies for the selected rows. Installation ============ ```bash sudo pip install dev_db ``` Add dev_db to your installed apps Customize the CreateDevDB class ```python DEV_DB_CREATOR = 'dev_db.creator.DevDBCreator' # for fashiolista DEV_DB_CREATOR = 'framework.dev_db_creator.FashiolistaDBCreator' ``` Creating the data ================= ```bash python manage.py create_dev_db -o ../development_data.json gzip ../development_data.json ``` Creating the test fixture takes about 5-10 minutes Loading the data ================ start with an empty db on local called test_fashiolista_local 1. python manage.py syncdb --all --noinput 2. python manage.py migrate --fake --noinput 3. Truncate contenttype and permission tables 4. python manage.py loaddata ../development_data.json.gz --traceback -v2 These four steps are also wrapped in the load_dev_db command. So simply run (This assumes you don't have the database yet, it wont drop it for you) ```bash python manage.py load_dev_db ``` Loading the fixture takes about 2 minutes (be sure to run pgtune on your local postgres, otherwise it might take longer) Running tests ============= From the dev_db_example directory run ```bash python manage.py test dev_db ```


نحوه نصب


نصب پکیج whl dev_db-0.3.2:

    pip install dev_db-0.3.2.whl


نصب پکیج tar.gz dev_db-0.3.2:

    pip install dev_db-0.3.2.tar.gz