git clone --branch=17.0 --depth=1 https://github.com/odoo/odoo.git project_odoo
cd project_odoo && mkdir .venv
pipenv shell
sudo ./setup/debinstall.sh
sudo apt install build-essential libbz2-dev libreadline-dev \
libssl-dev libsqlite3-dev zlib1g-dev python3-dev libpq-dev \
libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget \
curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load django_bootstrap5 %} | |
<div class="row mb-3"> | |
<label for="{{ field }}" class="form-label col-sm-2">{{ label }}</label> | |
<div class="col-sm-10"> | |
<input type="{{ type }}" class="form-control" id="{{ field }}" name="{{ field }}" placeholder="{{ placeholder }}" required> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update -y && sudo apt upgrade -y | |
sudo apt install build-essential libbz2-dev libreadline-dev libssl-dev libsqlite3-dev zlib1g-dev python3-dev libpq-dev libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev git | |
sudo apt install python3-dev python3-venv python3-pip postgresql postgresql-contrib libpq-dev nginx | |
# Generate passowrds | |
DBPASS=`< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c12` | |
GREEN='\033[1;36m' | |
WHITE='\033[1;37m' | |
# ============================================================== |
REFERENCE: https://hiteshmishra708.medium.com/deploy-django-app-with-nginx-and-gunicorn-37916ede7db
sudo apt install build-essential zlib1g-dev libbz2-dev \
libssl-dev libsqlite3-dev libpq-dev libreadline-dev \
libncurses5-dev libncursesw5-dev libffi-dev liblzma-dev \
wget curl llvm xz-utils tk-dev git \
sudo rm /etc/resolv.conf
sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf'
sudo bash -c 'echo "[network]" > /etc/wsl.conf'
sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf'
sudo chattr +i /etc/resolv.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Woocommerce Rename Weight | |
*/ | |
// ============================================= | |
add_action( 'woocommerce_init', 'wp_kama_woocommerce_init_action' ); | |
/** | |
* Function for `woocommerce_init` action-hook. |
NewerOlder