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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f20a6c4411d31cf9145ba5eea038648cd6778180043755bb3b20fcffd8a474c3 |
|
MD5 | 430fa8f0397ee3c75fb0cee46738ab12 |
|
BLAKE2b-256 | 4382e355ea6b5b300c2f15d77e94697111ff0b88a87dc789737903cafbc4c80f |
Close
Hashes for django_crud_generator-0.3.5-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c386c7802f532fba3235e628ee881bbf9d67ce64d98037ebac64f49968a7b88 |
|
MD5 | 32bb6525ee5b11afff67aec7587f19ea |
|
BLAKE2b-256 | 56f12050d7cbfaa62fd4f563040093924d31238e1a00f8232b8e5cb8ed531128 |