CRUD for your model¶
Accelerate prototyping with basic CRUD (Create, Read, Update, Delete) python views and HTML templates, enhanced with htmx and Tailwind CSS.
CRUD¶
Usage: crud [--blueprints BLUEPRINTS] [-e EXCLUDED_FIELDS] [--only-python] [--only-html] [--entry-point] [-l] [--skip-git-check] MODEL_PATH [-h] [--completion COMPLETION]
Generate CRUD (Create, Read, Update, Delete) views for a model.
Options
[--blueprints BLUEPRINTS] The path to custom html templates that will serve as blueprints. (Default: )
[-e, --exclude EXCLUDED_FIELDS] Fields to exclude from the views, forms and templates. (Default: [])
[--only-python] Generate only python code. (Default: False)
[--only-html] Generate only html code. (Default: False)
[--entry-point] Use the specified model as the entry point of the app. (Default: False)
[-l, --login-required] Add the login_required decorator to all views. (Default: False)
[--skip-git-check] Do not check if your git repo is clean. (Default: False)