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
After that we need to activate it
$ source my-env/bin/activate
(my-env)
We will use Django CLI, it comes with very useful commands.
(my-env) $ django-admin startproject phonebook && cd phonebook
To to our application we need to run django server
(my-env) $ python manage.py runserver
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)