Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.
Deploy your applications build using Django framework easily using Deploy Monk.
Follow the steps in the outline of this document (on right side) to get started.
1. Code repository
1.1 Forking existing repository
We've set up a sample Django repository (bootstrapped using Django's official documentation) already for you to just fork it and get started.
deploymonk/backend-python-django on GitHub and click on
Fork button on top right side
Use this repository from your GitHub account when deploying.
1.2 Creating manually
Open a terminal locally and enter following command to create a basic Django application:
mkdir examplecd example
Create virtual environment:
pip3 install virtualenvvirtualenv venvsource venv/bin/activate
Install Django and create
pip3 install djangopip3 install gunicornpip3 freeze > requirements.txtdjango-admin startproject example
Test the installation by running it locally:
cd examplepython manage.py runserver
Now that we have basic application setup, lets push the code to your VCS account (eg: GitHub or GitLab):
- Go to your VCS account website
- Create a new repository
- Copy the Git URL (eg:
Initialize git repository and commit files:
cd apigit initgit add .git commit -m "First commit"
Add URL for the remote repository and push the changes:
git remote add origin email@example.com:username/example.gitgit push -u origin master
2. Create project
- Open your Deploy Monk Console and click on
- Enter the
Project name, select
Server sizeand click on
Savebutton to create the project.
- To learn more about projects, goto project section of this documentation website.
Great 🎉, you have just completed creating a new Deploy Monk project.
3. Create project service
Add Service button and fill in the information as follows:
Service type, select
Service name, enter same name as in used while creating new Django app
django-admin startproject examplei.e.
Repository, select the repository created in step 1
8080(default port for Django)
To learn more about services, goto project services section of this documentation website.
Now click on
Save button to create the new service.
4. Deploy the project
Deploy button to deploy the project and go live.
5. Preview live
Click on the URL of your service to browse the live version.
Great 🎉, you have just completed creating a new Deploy Monk project and deploying it LIVE 🙌.