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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a280abea3c7bd68b9441d19dfed3e8227792174b2835dd93ae51b07b078cd8a9 |
|
MD5 | fdd5931e5333154ff28447137b6f83fd |
|
BLAKE2b-256 | 723f6a0881a8677514e2afdd9049772dcd4338e5cafeb311801dd7b4c393a421 |
Close
Hashes for django_crud_generator-0.3.3-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85de37e73a15a1f31129d313ef0b9b1fbfc1a2f055a4c6f1a4e635ec9cd478ad |
|
MD5 | b25bec377e9f8cbf7a0ad211ec45c213 |
|
BLAKE2b-256 | dc7536b50e3eb2ab143709e9541bb53a9ebe3ac1cf67757433f5667a7dd648db |