If you finish installing django as well as python, you may need to add your source code folder for efficient & convenient development. 

  1. Create a project folder in your system. In my case, I created it as "My Project"
  2. And open it by "File" → "Add Folder to Workspace"
  3. Now you will see like below.
  4. Open terminal by moving your mouse cursor on your project folder.


Now is time for you to create a django project by following command

$ django-admin startproject lifeplanet

For your information, I just created my project as "lifeplanet" - meaning you can use your own project name.


Once you create your project space without any error, you will be able to see following directory tree on Visual Studio Code. 

If you see the same files like I listed above, now is the time for you to run your web server based on Python. You can run your web server by following command line on the root directory of your project having manage.py:

$ python manage.py runserver

Note that your working directory should be .../lifeplanet having manage.py file.

If you have no issues, you will be able to see following message:

$ python manage.py runserver
Performing system checks...

You have 15 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.

System check identified no issues (0 silenced).

November 07, 2018 - 23:33:01
Django version 2.1.1, using settings 'lifeplanet.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[07/Nov/2018 23:33:13] "GET / HTTP/1.1" 200 16348
[07/Nov/2018 23:33:13] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
[07/Nov/2018 23:33:13] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 80304
[07/Nov/2018 23:33:13] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 81348
[07/Nov/2018 23:33:13] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 200 82564
Not Found: /favicon.ico
[07/Nov/2018 23:33:13] "GET /favicon.ico HTTP/1.1" 404 1976


It seems like mine has an error associated with migration, so I have to run migration command as python guided like above

$ python manage.py migrate


Wow. Now you are all set to start your journey on Django !!


The default connection URL defined on the project is http://127.0.0.1:8000, you can check it on your local web browser easily.

If you want to change the connection port, you can simply change it by starting server like below

$ python manage.py runserver 8080