Django 2.2: Create a Project


cd /usr/local/www/lf-django

django-admin startproject km02
ls -altr
drwxr-xr-x   5 root  wheel  512 Jul  3 17:58 dj22
drwxr-xrwx   4 root  wheel  512 Jul  4 17:59 lf19
drwxr-xr-x  14 root  wheel  512 Aug 31 15:21 ..
drwxr-xr-x   3 root  wheel  512 Sep 14 07:04 km02
drwxr-xr-x   5 root  wheel  512 Sep 14 07:04 .
# ls -altr km02
-rwxr-xr-x  1 root  wheel  624 Sep 14 07:04 manage.py
drwxr-xr-x  3 root  wheel  512 Sep 14 07:04 .
drwxr-xr-x  2 root  wheel  512 Sep 14 07:04 km02
drwxr-xr-x  5 root  wheel  512 Sep 14 07:04 ..

Adjust Settings.py

change the value of SECRET_KEY with a random value
change the value of DATABASES accordingly.
add kmgmt to INSTALLED_APPS.

cd /km02
python3.6 manage.py startapp kmgmt

ava tree django2

None

Published: Sept. 14, 2019

Change