Custom Search

Sunday, May 24, 2020

How to Install and Setup Django on Ubuntu 20.04 18.04

sudo apt-get python3-pip

python3 -V
pip3 -V

pip3 install django
ls /home/anna/.local/bin
export PATH=$PATH:/home/anna/.local/bin
django-admin --version

django-admin startproject myapp
cd myapp
python3 manage.py migrate

python3 manage.py createsuperuser

vi myapp/settings.py
ALLOWED_HOSTS = ['ip-address-of-server']

python3 manage.py runserver 0.0.0.0:8000

1 comment:

  1. Hi,
    Great Article! Your insights are spot on How to Install and Setup Django on Ubuntu 20.04 18.04. I especially appreciate your points. You've done your research. Keep up the excellent work! Looking forward to reading more from you.
    Here is sharing SAP AVC Online Training related stuff that may be helpful to you.

    SAP AVC Training

    ReplyDelete