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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e224cfedee7c8e0f39c25d065a32766a1025f0fcdadbb20e8825d54922ecc1e8 |
|
MD5 | 24370b5b49a44f331db0236bfd49ec13 |
|
BLAKE2b-256 | 83e4413a58109c20a65d0ffcabfd8b0f9970c312e51ab14ddeb10e3a6aacb499 |
Close
Hashes for django_crud_generator-0.3.8-py3.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11b046bc97151233c6d20c596775e8ea423f670e2e29f154839555dbaff5d74b |
|
MD5 | 765ee45ba00a387032ba1b78885829bd |
|
BLAKE2b-256 | 618ba7f093d0cd5d7f0693f7ffcfe41dcfcd881dddda3f18a8e8cc1d833d62d2 |