A simple scaffolding for django applications
Project description
# Django CRUD Generator
This is a simple 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.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fc345d3f6ca0815b53ac00b237b1a4b533a7ca45b699ba42c082b376a3fe5cc |
|
MD5 | 2eaa39c897e5789262956ee9f4f5292a |
|
BLAKE2b-256 | 712ff61e5aad5dda6e7bfa66407e362623d3b4a94c2ec3ca72d525cddd2a6af2 |
Hashes for django_crud_generator-0.3.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce38eb7ee31b4481030839b0ecbe6a8c3d7cb935eeeb86ee903089f9e8f56da8 |
|
MD5 | b8a71951f66b25105fe31dbab0fd840b |
|
BLAKE2b-256 | e836a824c28f27f3b73672fe7fdb2d11a098a1b35e62278387e77ec8c146d767 |