Deploying DRF or Django App on less than 10 minutes.

Photo by Fancycrave on Unsplash

In this blog, I would like to share how to deploy your django-app including DRF(Django-Restful-Framework) app into Using, you can deploy any django app less than 10 miniute.

  1. First you go to
  2. Click “Web” category on the top-right side and click “add a new app”. This will give you a pop-up like the picture below. Unless you have bought a domain already, you should choose

*For your information, I had another app “”.

3. Next decide your app name and directory. I recommend you to leave the directory path as it is unless you know what you are doing. My project name is DRF_BACKEND and I set the path on the very top of my home directory.

4. Choose Django and python version. I choose python3.5 due to easy virtualenv setup at I recommend you to do so as well.

5. Go to “”. You will see a page like the following picture. Django has been deployed.

6. Your django app has been deployed. However, the default version of django at is 1.10 or 1.11. I want the lastest django version which is 2.1.7 as of this writing. In order to use the newest django, you have to create a virtualenv and configure it on That means, you should create a virtualenv on console by yourself, and tell where to look up when you run the application.

7. Go to “Consoles” and create a virtualenv

For a virtualenv, I usually make “venvs” folder and create individual virtualenvs inside the venvs folder in case I need a few more virtualenvs. So in my case I made “venvs” folders like /home/tofusoup429/venvs/, then I placed the virtualenv inside the folder. It is totally up to you where to place your virtualenv and what name to use.

The command line for placing vitualenv is as follows.

OK. you will see somthing like this if it works as it is supposed.

8. Now activate the virtualenv. Make sure you type in path correctly.

9. you will see your virtualenv name within parentheses as follows.

10. Ok… it is time to install the latest django.

It is supposed to show this.

Do you see the django version 2.1.7? It is sucessfully installed.

11. Configure virtualenv at

Now we should tell pythonanywere which virtualenv I am going to use by configuring. Go to “Web” and Virtualenv section. Do you see red letters saying “Enter path to a virtual env if desired”? Yes, we desire to set our own virtualenv. So type the path of it. In my case, it is /home/tofusoup429/venvs/DRF_BACKEND_venv

If you type in correctly, you will see something like this.

Make sure your python version in virtualenv matches with the one above. If it does not match, a warning appears.

12. Reload your site by clicking the green button including your url.

13. Go to “”, in my case, and see what is different.

It is the new version of django. The latest django is deployed. It probably took you less than 10 minutes. You can put stuffs you have worked on here.

14. You can replace the ugly with nice your custom-domain like like I do. Pythonanywhere requires you to have a paid-account, which is starting from $5 a month to do so. I will share how to replace it in a later blog post.

Thank you for reading. I was in a rush when writing this. So if you find any error, please let me know. Also if you have any comments, questions or whatever, leave a message, I will get back to you as soon as possible.

A Certified Public Accountant / Hobbyist-programmer-but-dead-serious-specializing JavaScript, ReactJS, NextJS and AWS.