A simple scaffolding for django applications
Project description
# Django CRUD Generator
This is a simpls script to automate CRUD operations based on [Base Django](https://git.contraslash.com/ma0/base-django) by [contraslash](https://contraslash.com)
## 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](https://git.contraslash.com/ma0/base-django) and is already on INSTALLED_APPS on settings.py
## Usage: You should invoque this script using simethin like this
`bash 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](http://www.django-rest-framework.org/)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_crud_generator-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13945f8e092738004472c492085c3a1e32e03d44877f8d7315bd5ce327d21e60 |
|
MD5 | efc2e157745b89ffb13439d0984dfe7e |
|
BLAKE2b-256 | 9963c89f685be280859e434ead943f993705873d8c1c2d1ac37ec91063edbdee |
Hashes for django_crud_generator-0.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bc745a2bc3464542fb96e5e14dae1c9b0c1ab1861494117866351b8283222db |
|
MD5 | 0c4387f491b19521b7b24df67d475ad4 |
|
BLAKE2b-256 | 658ca91b37982dfe3afb616adccfec1dab47124f31161161bc6355baa4ec2fc1 |