Metadata-Version: 2.1
Name: django-data-seed
Version: 0.2.0
Summary: A Django app to generate and seed database models with random data.
Home-page: https://github.com/rohith-baggam/django-data-seed
Author: Rohith Baggam
Author-email: baggarohithraj@gmail.com
License: MIT License
Project-URL: Bug Reports, https://github.com/rohith-baggam/django-data-seed/issues
Project-URL: Source, https://github.com/rohith-baggam/django-data-seed
Keywords: django data seed
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 3.2
Classifier: Framework :: Django :: 4.0
Classifier: Framework :: Django :: 4.1
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: colorama >=0.4.6
Requires-Dist: Faker >=26.0.0

Django Data Seed is a powerful Django application designed to populate your database with test data. Using the Faker library, it allows you to generate random test data for your models with a single command via [manage.py](http://manage.py/).

## Features

- Generate random data for various Django model fields
- Seed database models with randomly generated data
- Handle complex relationships between models

## **Installation**

To install django-seed, use pip:

```
pip install django-data-seed
```

 Add `django_data_seed` to your `INSTALLED_APPS` in your Django settings:

```json
INSTALLED_APPS = [
    'django_data_seed',
]

```

## Dependencies

This package requires the following Python packages:

- `Django` (>=3.2)
- `Faker` (>=8.0.0)

These dependencies will be installed automatically when you install `django-data-seed` using pip. If you need to install them manually, you can use the following commands:

```bash
pip install colorama>=0.4.6
pip install Faker>=26.0.0

```

## Usage

**Note** : The current version of `django-data-seed` works with native Django fields only. It does not support Django Postgres-specific fields.

## **Using with command**

With `django-data-seed`, you can seed your database using a single command. The `seeddata` command is part of the [manage.py](http://manage.py/) script.

- By default django-data-seed populates each model which are configured in [settings.py](http://settings.py) with 10 instances for each model.

```json
python manage.py seeddata 
```

To specify the number of instances to create for each model, use the `--no-of-objects` argument:

```json
python3 manage.py seeddata --no-of-objects 100
```

To populate data for a specific Django app, use the `--django-app` argument:

```json
python3 manage.py seeddata --django-app app_name
```

## Supported Versions

### Django Versions

- Django 3.2
- Django 4.0
- Django 4.1

### Python Versions

- Python 3.7
- Python 3.8
- Python 3.9
- Python 3.10

### Operating Systems

- Windows
- macOS
- Linux

## License

This project is licensed under the MIT License - see the [LICENSE](https://www.notion.so/LICENSE) file for details.

## Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

## Support

If you encounter any issues or have any questions, please open an issue on the GitHub repository.visit the  [GITHUB](https://github.com/rohith-baggam/django-data-seed)

https://github.com/rohith-baggam/django-data-seed

## Author

Rohith Bagga

[LinkedIn Profile](https://www.linkedin.com/in/rohith-raj-baggam/)
