Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. It can be built easily for microservice on KintoHub!
About KintoHub:
KintoHub aligns teams to ship & operate cloud native apps with ease. Learn More
- Apply this template to your Github
- Create a Microservice Block on KintoHub
- Connect your GithubApp to KintoHub and select the Repository you just generated on your account.
- Set the name of your kinto block
- Choose
Python
as the language and3.7.5-alpine
as the version - Set the Build Command as
pip install -r requirements.txt
- Set the Start Command as
python manage.py runserver 0.0.0.0:80
- Set the Port as
80
You're now good to go! Click Create Microservice. Now click Build Latest Commit
Once complete, Click Add to Project
Follow the instruction to create a new project. Once created, you should be able to access your API endpoints.
Ensure you have Python 3 or higher.
pip install -r requirements.txt
python manage.py runserver 0.0.0.0:80
Default value = Hello
, please refer to the .env-example
file
GREETING=Hi
NOTE: The ending slash /
is required for Django
Local:
curl -X GET http://localhost/hello/world/
On KintoHub:
curl -X GET http://<EnvironmentHostName>/<KintoBlockName>/hello/world/
Please refer to Accessing API Endpoints for the setup instruction
Try this Live Example !
{
"message": "Hello world"
}
You can do a lot with KintoHub and your deployed application. Some helpful links for next steps that you may consider with this project.