This example shows how to use Dub with Django
- Create and activate a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Set your Dub API key as a environment variable:
export DUB_API_KEY="p4z..."
- Run the Flask app:
python manage.py runserver
- Create a new link:
curl -X POST http://127.0.0.1:8000/create-link
Thanks for taking the time to contribute! Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody and are very appreciated.
Please try to create bug reports that are:
- Reproducible. Include steps to reproduce the problem.
- Specific. Include as much detail as possible: which version, what environment, etc.
- Unique. Do not duplicate existing opened issues.
- Scoped to a Single Bug. One bug per report.
MIT License