Adding new Django packages
This skill helps you add support for new django packages to djdevx.
When to use this skill
Use this skill when you need to:
- Create a new django package support
Creating packages
- Review the django packages directory to understand the structure of packages and the commands they support. How typer is used to create the cli command lines. How user is prompted to provide the input needed for the packages. Also notice that some packages have different backends.
- Review the templates diretory to understand how the templates are structured and how the variables are created for user input using jinja2 templating.
- Review the tests directory to undrestand how the tests are structured and how the data is provided.
- Find the documentation for the package in internet or ask for the link to understand how to install and configure the package. Use the django-package-researcher skill.
- Create the the stucture for the new django package in django packages directory and add the typer code for install/remove/env. Also import the new typer package in djdevx/backend/django/packages/init.py. Consult typer-cli-writer skill
- Add the required templates needed such as settings and urls in templates diretory.
- Add proper test in tests directory to test the package structure is correct and the content match the expected data. Look at "Write and run tests" section.
Write and run tests
Use the tester skill to write and run the test and ensure everything works as expected.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.