Dev 19. Django Installation (VSCode)

Jeongmin Jamie Shin
2 min readJan 11, 2021

--

It’s a new start in 2021 and one step forward to be a database developer!

With Master Choi, we’ve concluded to start the smallest thing and therefore I registered in Inflearn(https://www.inflearn.com) to study Django.

The very first step is to install the Django on my computer. Since I am new to my Macbook, I needed to google it how to do.. (https://appdividend.com/2018/03/28/how-to-install-django-in-mac/)

Step 1: Install Python on Mac

I did install Python 3 according to the official document of Python.

Step 2: Install Pip package management system

sudo easy_install pip (Done!)

Step 3: Install virtualenv for python

sudo pip install virtualenv

virtualenv dj (I named the virtual environment dj)

cd dj

source bin/activate

Step 4: Install Django In Mac

sudo pip install django==3.0.1 (I don’t know why but this results un error on terminal. There for I deleted ‘==3.0.1’ and it worked anyway)

python3 -m django — version (The version of Django is 3.1.5)

Step 5: Create the Django Project

django-admin startproject inf1 (The project’s name is inf1)

cd inf1

python3 manage.py runserver (Run the server, I have to find a folder whose name is ‘inf1’ with manage.py in it. Otherwise, it cannot run the server)

Access http://127.0.0.1:8000/

Step 6: Open Django on Visual Studio Code

code . (This command didn’t work as I expected..! Then I found out that the I need to set something on VSCode by googling ‘mac terminal vscode open’. In the end, I was able to open vscode through terminal command)

Well done! Good job! Haha!

— — — — — — — — — — — — — — — — — — — — —

13 Jan

I tried to install the Django again and have found another tutorial (https://deepinsight.tistory.com/70?category=814314) which I prefer more.

--

--

Jeongmin Jamie Shin
Jeongmin Jamie Shin

Written by Jeongmin Jamie Shin

0 Followers

EN/KO/IT, Web development, Cooking, Reading, Business

No responses yet