DEV Community

Cover image for Getting started with Django 3.0 part 1
Ousseynou Diop
Ousseynou Diop

Posted on • Updated on

Getting started with Django 3.0 part 1

In this tutorial i will share with you how to build real world application with Django.

https://rapidpython.com/getting-started-with-django/

What is Django ?

Django is a high level web framework built in top of Python.

Who use Django ?

Django is used by lot of companies such as Facebook, Google, Pinterest, Mozila etc...

What we will build ?

We go to build a simple phone-book application, but the ideas in this tutorial is applicable in any application.

Let's getting started :

Django installation

To install django in our machine we need to follow these step :

  • Install Python with PIP
  • Create a virtual environment
  • Install Django on it

Follow these instructions to install Python and PIP.
I will create a folder for this project and create an envirotnemnet on it :

$ mkdir django-3-0
$ cd django-3-0
$ python3 -m venv ./my-env
Enter fullscreen mode Exit fullscreen mode

After that we need to activate it

$ source my-env/bin/activate
(my-env)
Enter fullscreen mode Exit fullscreen mode

We will use Django CLI, it comes with very useful commands.

(my-env) $ django-admin startproject phonebook && cd phonebook
Enter fullscreen mode Exit fullscreen mode

To to our application we need to run django server

(my-env) $ python manage.py runserver
Enter fullscreen mode Exit fullscreen mode

The server will start on http://localhost:8000/
Open your browser and go to http://localhost:8000/

See you in the next tutorial

Top comments (0)