vrijdag 24 juni 2022

install mysql on linux

 How To Install MySQL on Ubuntu 20.04 | DigitalOcean

check if mysql is running systemctl list-units --type=service --state=running or

systemctl --type=service

grant acces to user

open port in firewall for external communication


Run SQL file in MySQL database from terminal? (tutorialspoint.com)

woensdag 15 juni 2022

python - django - wagtail cms

install python 3.9

install pip for use in commandline:

download :get-pip.py

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
install pip:
python3 get-pip.py

see: https://www.geeksforgeeks.org/how-to-install-pip-in-macos

install wagtail; see https://wagtail.org/developers/


when modulenotfound exception use:

python -m pip install django
python -m pip install wagtail

dinsdag 14 juni 2022

static web app configuration

 place a staticwebapp.config.json file in the root of your application.

Configure Azure Static Web Apps | Microsoft Docs

fe:

{
  "navigationFallback": {
    "rewrite": "/index.html",
    "exclude": [
      "/assets/icons/*.{png,jpg,gif,webp}",
      "/assets/images/*.{png,jpg,gif,webp}",
      "/assets/*.{json}"
    ]
  },
  "mimeTypes": {
    ".json": "text/json",
    ".webp": "image/webp"
  },
  "routes": [
    {
      "route": "index.html",
      "headers": {
        "Cache-Control": "no-store"
      }
    }
  ]
}