Skip to main content

A simple scaffolding for django applications

Project description

Django CRUD Generator

PyPI

This is a simple script to automate CRUD operations based on Base Django by contraslash

Prerequisites:

  • You have an existing django project with an app with a model to generate its crud
  • You have a template called base.html and that template contains a block called content
  • You have installed Base Django app and is already on INSTALLED_APPS on settings.py

Usage:

You should invoque this script using simethin like this

cd your/app/path
python django-crud-generator.py --model_name ModelName

After run the script add a attribute to your model url_name = conf.<MODEL_NAME>_DETAIL_URL_NAME.

Be sure your path/to/application/urls.py is routed by the main urls.py file.

Options:

  • --model_prefix: Is used to prefix all configuration in conf.py variables for urls
  • --url_pattern: Define the url pattern inside the urls.py
  • --create_api: If True creates an api based on Django Rest Framework

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

django_crud_generator-0.3.10.tar.gz (7.8 kB view hashes)

Uploaded source

Built Distribution

django_crud_generator-0.3.10-py3.6.egg (16.1 kB view hashes)

Uploaded 3 6

Supported by

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