Skip to main content

A simple app for generating test data for a given django models description.

Project description

Djenerator is a simple tool made to generate test/random data from the model description of django.

Installation

Using pip, you can install djenerator using this command:

$ pip install djenerator

Usage

Full documentation: http://pythonhosted.org/djenerator/usage.html

Add ‘djenerator’ to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'djenerator',
    ...
)

The generation of data are then done by a command using manage.py file in your project:

$ python manage.py jenerate size app_name output_file

There’s another command that can be used for data generation, in this case the generated data will be dumped in the database:

$ python manage.py jendb size app_name

Running the tests

Run the tests by running the command:

$ python runtests.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for djenerator, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size djenerator-1.0.1-py2-none-any.whl (16.3 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size djenerator-1.0.1.tar.gz (12.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page