Skip to main content

Boilerplate generator for django

Project description

dj-generator

A lot of our time we spend on creating CURD in django. This project aims to generate boilerplate code to reduce our valuable time.

The django templating system is pretty powerful. We can make use of the power of templating tool to generate basic CURD given a model.

Assumptions

This project assumes that you follow certain folder structure. That makes this project to stay as simple as possible.

Usage

Pattern -

python manage.py generate app.Model --template power

For example if you run following command -

python manage.py generate testapp.Task --template power

It will create -

  • CRUD python files under testapp/task folder.
  • CRUD template files under testapp/templates/testapp/task folder.

Project details


Download files

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

Source Distribution

dj-generator-0.0.1.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

dj_generator-0.0.1-py3-none-any.whl (12.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page