Development
Local installation¤
Start by forking the project by clicking the Fork button up in the right corner in the GitHub. This makes a copy of the repository in your own name. Now you can clone this repository locally and start adding features:
git clone https://github.com/<your GitHub username>/django-components.git
+ Development
Local installation¤
Start by forking the project by clicking the Fork button up in the right corner in the GitHub. This makes a copy of the repository in your own name. Now you can clone this repository locally and start adding features:
To quickly run the tests install the local dependencies by running:
You also have to install this local django-components version. Use -e
for editable mode so you don't have to re-install after every change:
pip install -e .
@@ -151,7 +151,11 @@
# Build a binary wheel and a source tarball
python -m build --sdist --wheel --outdir dist/ .
To publish the package to PyPI, use twine
(See Python user guide):
Maintenance¤
Updating supported versions¤
The scripts/supported_versions.py
script can be used to update the supported versions.
This will check the current versions of Django and Python, and will print to the terminal all the places that need updating and what to set them to.
Updating link references¤
The scripts/validate_links.py
script can be used to update the link references.
When new version of Django is released, you can use the script to update the URLs pointing to the Django documentation.
First, you need to update the URL_REWRITE_MAP
in the script to point to the new version of Django.
Then, you can run the script to update the URLs in the codebase.
Development guides¤
Head over to Dev guides for a deep dive into how django_components' features are implemented.