Metadata-Version: 2.1
Name: django-migdb
Version: 0.0.0
Summary: This is a tool for map the old version of Django project models to new version.
Home-page: https://gitlab.com/cnili/django-migdb
Author: Chatr-e Nili
Author-email: info@cnili.com
License: MIT
Platform: OS Independent
Classifier: Environment :: Web Environment
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT license
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.0
Classifier: Framework :: Django :: 2.1
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 2.3
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Python: >=3.4
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django>=2.0

# Django MigDB

If your model structure has changed and you want to transfer data from the old model to the new one you can use **MigDB**.

## Features

- Python >=3.4, Django >=2.0
- Support Delete, Rename, Format, Format & Rename Fields

## Installation

Install using `pip`...

    pip install django-migdb

Add `'migdb'` to your `INSTALLED_APPS` setting.

    INSTALLED_APPS = [
        ...
        'migdb',
    ]

Add `path("migdb/", include("migdb.urls"))` to your `urlpatterns`.

    urlpatterns = [
        ...
        path("migdb/", include("migdb.urls")),
    ]

That's it, we're done!

    ./manage.py runserver

You can now open the MigDB Interface in your browser at `http://127.0.0.1:8000/migdb/`, and view your apps.

## Options

- **Rename**
    > change the field name.
- **Delete**
    > delete field.
- **Format**
    > format the field content. usages: Concatenate fields, Replace Field Content, Add Prefix and Postfix to Field Content.

    ### Examples

        @{username} # add prefix
        {first_name}-{last_name} # concatenate
        {count:0.0f} # convert float to int
        {username:5.5} # truncate string
        @website # replace with static content
    [read the documentation and see more examples](https://docs.python.org/3/library/string.html#format-examples)
- **Format And Rename**
    > field name have changed and also want to format the content.

## License

Copyright (c) Roundium. All rights reserved.

Licensed under the [MIT](LICENSE) license.
