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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file dj-generator-0.0.1.tar.gz.

File metadata

  • Download URL: dj-generator-0.0.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.6.6 Darwin/18.5.0

File hashes

Hashes for dj-generator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 21ff7fae08d2c039b432e1e96a2d8011065722cbd814fb74899ca5492249e2f3
MD5 a09ae362895d732aab39845256e3399c
BLAKE2b-256 b2da4e68418882caf289399c273255cc22ac9f233238df685c920f575573662b

See more details on using hashes here.

File details

Details for the file dj_generator-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dj_generator-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.6.6 Darwin/18.5.0

File hashes

Hashes for dj_generator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 084eb754ab3aab0794233ff061661f09f3d48d3dee3fdb9a3b497a21861d9714
MD5 865eed1e1af74197f68f8af689f91315
BLAKE2b-256 695650dbbad686a01b9a676c94fa029efc29ad2a065191d3a204eeb8099612ba

See more details on using hashes here.

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