Updated: 2021-10-06
-
source .env/bin/activate
-
cd lorenzoProject/
-
./run.sh
-
point web browser to http://localhost:8000/show
- django
- django-widget-tweaks
- mysqlclient
- libmariadb-dev (debian package)
cd lorenzoProject/
python3 -m venv .env
source .env/bin/activate
pip install django
pip install django-widget-tweaks
sudo apt update && sudo apt install libmariadb-dev
pip install mysqlclient
portability, virtually no network connection needed (bootstrap need internet connection)
semplicity, one-node model
code must be changed
sqlite management require docs readings, no adminer at all
sudo apt install sqlite3
If MySQL support is unnecessary or unwanted, simplest way to store your data is SQlite
in settings.py
alterate DATABASES object like this below:
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } }
sqlite3 db.sqlite3
enter DB.tables
show DB structure