Install Django 2.0 and Setup Local Environment Development on Linux Debian





1. Install python, i install python 3. Before install python, update the repository

$ sudo apt-get update
$ sudo apt-get install python3

2. Install Virtualenv

$ sudo apt-get install python-virtualenv

3. Create a new directory

$ virtualenv -p python3 project_name

4. Change the directory project_name

$ cd project_name

5. To use this environment, you need to activate it

$ source bin/activate

6. Install Django using pip3

$ pip3 install Django

7. Start django project

$ django-admin startproject myproject

8. Change directory using cd

$ cd myproject

9. Run Django Project

$ ./manage.py runserver

Access the web browser at http://127.0.0.1:8000


Share: