A CLI Tool to generate content for all files in a django app directory including templates with the help of openai models
This script would generate the following files for you:
- models.py
- views.py
- urls.py
- admin.py
- tests.py
- forms.py
- signals.py
- HTML templates
Meant to be run after the startapp command
pip install assisted-django
- Make a django project and create a new app as usual
- Run
python -m assisted_django
in the same level asmanage.py
CLI
will guide you through the rest of the process
- Set the
OPENAI_API_KEY
in your.env
file - This script will overwrite the existing app directory files
- The CLI will confirm with the full file path before taking any action
- Write better briefs to get better results
- We prefer class based generic views
- We utilize django-crispy-forms with bootstrap4
- Html templates utilize bootstrap4