A simple scaffolding for django applications
Project description
Django CRUD Generator
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 calledcontent
- You have installed Base Django app and is already on
INSTALLED_APPS
onsettings.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 inconf.py
variables for urls--url_pattern
: Define the url pattern inside theurls.py
--create_api
: IfTrue
creates an api based on Django Rest Framework
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
Close
Hashes for django_crud_generator-0.3.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | af48d9b11d31dd51f0acd439d702ab8f971f334cb563acce9c52ce1f82a969e2 |
|
MD5 | cb0b003e1bd6aba702b8ed1cf84b5938 |
|
BLAKE2b-256 | 5f9bd0922926e4d0e17d41a6596838a3cc1ae204df669c96e9b455bb9597c11d |
Close
Hashes for django_crud_generator-0.3.4-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cba39106edf58ed956ea2b259b19fad17ab058e61eecfcf30f3c615e8af1a4f |
|
MD5 | a901572ceee485cd2884fc1c979de68e |
|
BLAKE2b-256 | 759e2b7a48247a41c594100027d09a6935679a90b0e8c88871f5524a862aa8ca |